diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2004-06-22 20:53:32 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2004-06-22 20:53:32 +0000 |
commit | 9d6c9f0d4b18501131d3facde7cc97729f1a4526 (patch) | |
tree | d6e3cdc0b4841c93fba88f92955d93c4ae417725 /net/openslp/files/slpd.in | |
parent | 3b1fdaa573db748e5d59c85ad35497c5a76aae74 (diff) | |
download | ports-9d6c9f0d4b18501131d3facde7cc97729f1a4526.tar.gz ports-9d6c9f0d4b18501131d3facde7cc97729f1a4526.zip |
RCng'ify OpenSLP.
Submitted by: kuriyama
Notes
Notes:
svn path=/head/; revision=112007
Diffstat (limited to 'net/openslp/files/slpd.in')
-rw-r--r-- | net/openslp/files/slpd.in | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/net/openslp/files/slpd.in b/net/openslp/files/slpd.in index eb0cb1dc2b34..6a0f78a4820b 100644 --- a/net/openslp/files/slpd.in +++ b/net/openslp/files/slpd.in @@ -2,22 +2,25 @@ # # $FreeBSD$ # -# OpenSLP daemon. +# PROVIDE: slpd +# REQUIRE: DAEMON +# KEYWORD: FreeBSD # -if ! test -x %%PREFIX%%/sbin/slpd -then -# exit 0 -fi -case $1 in -start) - echo -n ' slpd' - %%PREFIX%%/sbin/slpd - ;; -stop) - killall slpd - ;; -*) - echo "Usage: $0: [ start | stop ]" 2>&1 - exit 65 - ;; -esac +# Add the following line to /etc/rc.conf to enable slpd: +# +# slpd_enable="YES" +# + +slpd_enable="NO" +slpd_flags="-p /var/run/slpd.pid" + +. %%RC_SUBR%% + +name=slpd +rcvar=`set_rcvar` + +command=%%PREFIX%%/sbin/slpd +pidfile="/var/run/${name}.pid" + +load_rc_config ${name} +run_rc_command "$1" |