From a72061eb871c9a9432c74b80f227a5bf8b3e0cf4 Mon Sep 17 00:00:00 2001 From: Timothy Date: Thu, 26 May 2016 13:10:13 +0800 Subject: [PATCH] Add upstart config file, to run godns as a daemon via upstart --- upstart/godns.conf | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 upstart/godns.conf diff --git a/upstart/godns.conf b/upstart/godns.conf new file mode 100644 index 0000000..8cf8d86 --- /dev/null +++ b/upstart/godns.conf @@ -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