aboutsummaryrefslogtreecommitdiffstats
path: root/main/busybox-initscripts/dnsd.initd
diff options
context:
space:
mode:
Diffstat (limited to 'main/busybox-initscripts/dnsd.initd')
-rw-r--r--main/busybox-initscripts/dnsd.initd17
1 files changed, 17 insertions, 0 deletions
diff --git a/main/busybox-initscripts/dnsd.initd b/main/busybox-initscripts/dnsd.initd
new file mode 100644
index 0000000000..8d625f9e5e
--- /dev/null
+++ b/main/busybox-initscripts/dnsd.initd
@@ -0,0 +1,17 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+}
+
+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 $?
+}