Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)| package main | |
| import ( | |
| "bytes" | |
| "crypto/rand" | |
| "encoding/gob" | |
| "fmt" | |
| "io/ioutil" | |
| "os" | |
| "time" |
Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)