From 4040c988427b549aa4155f4f16a85e54da4ed5bd Mon Sep 17 00:00:00 2001 From: Erwin Lansing Date: Mon, 19 Jun 2006 11:35:26 +0000 Subject: rcNGefy PR: 97852 Submitted by: Zane C. B. with changes from maintainer Approved by: gabor (maintainer) --- dns/pdnsd/files/pdnsd.in | 16 ++++++++++++++++ dns/pdnsd/files/pdnsd.sh | 19 ------------------- 2 files changed, 16 insertions(+), 19 deletions(-) create mode 100644 dns/pdnsd/files/pdnsd.in delete mode 100644 dns/pdnsd/files/pdnsd.sh (limited to 'dns/pdnsd/files') 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 -- cgit v1.2.3