From 8ea34b27980bf3a0fd71818f0d269a5c53f647cb Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 1 May 2012 15:05:03 +0000 Subject: testing/gdnsd: add very basic init.d script --- testing/gdnsd/gdnsd.initd | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 testing/gdnsd/gdnsd.initd (limited to 'testing/gdnsd/gdnsd.initd') diff --git a/testing/gdnsd/gdnsd.initd b/testing/gdnsd/gdnsd.initd new file mode 100755 index 0000000000..e11a73d1d6 --- /dev/null +++ b/testing/gdnsd/gdnsd.initd @@ -0,0 +1,18 @@ +#!/sbin/runscript + +depend() { + need net + after firewall +} + +start() { + ebegin "Starting dnsd" + start-stop-daemon --start --exec /usr/sbin/dnsd -- -d $DNSD_OPTS + eend $? +} + +stop () { + ebegin "Stopping dnsd" + start-stop-daemon --stop --exec /usr/sbin/dnsd + eend $? +} -- cgit v1.2.3