1
0
mirror of https://github.com/taigrr/godns synced 2025-01-18 04:03:25 -08:00

Add upstart config file, to run godns as a daemon via upstart

This commit is contained in:
Timothy 2016-05-26 13:10:13 +08:00
parent 24d26c94be
commit a72061eb87

13
upstart/godns.conf Normal file
View File

@ -0,0 +1,13 @@
description "GoDNS daemon"
start on (local-filesystems and net-device-up IFACE!=lo)
kill signal TERM
kill timeout 60
setuid your-username
setgid your-username
respawn
exec /path/to/your/godns-repo/godns -c /path/to/your/godns-repo/config.json