aboutsummaryrefslogtreecommitdiff
path: root/dns/pdnsd/files
diff options
context:
space:
mode:
authorErwin Lansing <erwin@FreeBSD.org>2006-06-19 11:35:26 +0000
committerErwin Lansing <erwin@FreeBSD.org>2006-06-19 11:35:26 +0000
commit4040c988427b549aa4155f4f16a85e54da4ed5bd (patch)
tree10e9995d76ed9cadfec14675dba58dfe5449ea90 /dns/pdnsd/files
parent3b52b488982861be84601cf9395eed94bffee74a (diff)
downloadports-4040c988427b549aa4155f4f16a85e54da4ed5bd.tar.gz
ports-4040c988427b549aa4155f4f16a85e54da4ed5bd.zip
Notes
Diffstat (limited to 'dns/pdnsd/files')
-rw-r--r--dns/pdnsd/files/pdnsd.in16
-rw-r--r--dns/pdnsd/files/pdnsd.sh19
2 files changed, 16 insertions, 19 deletions
diff --git a/dns/pdnsd/files/pdnsd.in b/dns/pdnsd/files/pdnsd.in
new file mode 100644
index 000000000000..27e70e0da0a1
--- /dev/null
+++ b/dns/pdnsd/files/pdnsd.in
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+# PROVIDE: pdnsd
+# REQUIRE: netif
+# BEFORE: LOGIN
+
+. %%RC_SUBR%%
+
+name="pdnsd"
+rcvar=${name}_enable
+command="%%PREFIX%%/sbin/pdnsd"
+pdnsd_flags="-d"
+required_files="%%PREFIX%%/etc/pdnsd.conf"
+load_rc_config $name
+
+run_rc_command "$1"
diff --git a/dns/pdnsd/files/pdnsd.sh b/dns/pdnsd/files/pdnsd.sh
deleted file mode 100644
index b5d6453eafd0..000000000000
--- a/dns/pdnsd/files/pdnsd.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-
-case $1 in
-start)
- if [ -x %%PREFIX%%/sbin/pdnsd -a -f %%PREFIX%%/etc/pdnsd.conf ]; then
- %%PREFIX%%/sbin/pdnsd -d
- echo -n ' pdnsd'
- fi
- ;;
-stop)
- killall pdnsd && echo -n ' pdnsd'
- ;;
-*)
- echo "Usage: `basename $0` {start|stop}" >&2
- exit 64
- ;;
-esac
-
-exit 0