aboutsummaryrefslogtreecommitdiffstats
path: root/main/pdnsd/pdnsd.initd
diff options
context:
space:
mode:
authorMatt Smith <mcs@darkregion.net>2011-03-29 23:41:13 -0500
committerMatt Smith <mcs@darkregion.net>2011-03-29 23:41:13 -0500
commit49897f4bda22343113903a5dd26d0e42aab54a80 (patch)
tree2079d324b5b0b920afef906ffcc4fe1df1818825 /main/pdnsd/pdnsd.initd
parent4346c9975804621d2e276ef1a12c0695dce71eb1 (diff)
downloadaports-49897f4bda22343113903a5dd26d0e42aab54a80.tar.bz2
aports-49897f4bda22343113903a5dd26d0e42aab54a80.tar.xz
main/pdnsd: moved from testing
Diffstat (limited to 'main/pdnsd/pdnsd.initd')
-rw-r--r--main/pdnsd/pdnsd.initd25
1 files changed, 25 insertions, 0 deletions
diff --git a/main/pdnsd/pdnsd.initd b/main/pdnsd/pdnsd.initd
new file mode 100644
index 0000000000..355163ce12
--- /dev/null
+++ b/main/pdnsd/pdnsd.initd
@@ -0,0 +1,25 @@
+#!/sbin/runscript
+
+name=pdnsd
+daemon=/usr/sbin/$name
+
+depend() {
+ need net
+ after firewall
+}
+
+start() {
+ ebegin "Starting ${name}"
+ start-stop-daemon --start --quiet \
+ --pidfile /var/run/${name}.pid \
+ --exec ${daemon} -- ${pdnsd_opts}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${name}"
+ start-stop-daemon --stop --quiet \
+ --pidfile /var/run/$name.pid \
+ --exec ${daemon}
+ eend $?
+}