aboutsummaryrefslogtreecommitdiff
path: root/net/openslp
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2004-07-21 19:56:49 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2004-07-21 19:56:49 +0000
commitc3dcb4a96513c113154193379540f90d6939c483 (patch)
tree3ec61699e512e8010efce294b6e2a6ff4e11161a /net/openslp
parenta408c6430fe1818afdfe15bf36bc1528e50b4807 (diff)
downloadports-c3dcb4a96513c113154193379540f90d6939c483.tar.gz
ports-c3dcb4a96513c113154193379540f90d6939c483.zip
Notes
Diffstat (limited to 'net/openslp')
-rw-r--r--net/openslp/files/slpd.in6
-rw-r--r--net/openslp/files/slpd.sh.sample6
2 files changed, 6 insertions, 6 deletions
diff --git a/net/openslp/files/slpd.in b/net/openslp/files/slpd.in
index 6a0f78a4820b..005d18921a5d 100644
--- a/net/openslp/files/slpd.in
+++ b/net/openslp/files/slpd.in
@@ -11,9 +11,6 @@
# slpd_enable="YES"
#
-slpd_enable="NO"
-slpd_flags="-p /var/run/slpd.pid"
-
. %%RC_SUBR%%
name=slpd
@@ -22,5 +19,8 @@ rcvar=`set_rcvar`
command=%%PREFIX%%/sbin/slpd
pidfile="/var/run/${name}.pid"
+[ -z "$slpd_enable" ] && slpd_enable="NO"
+[ -z "$slpd_flags" ] && slpd_flags="-p /var/run/slpd.pid"
+
load_rc_config ${name}
run_rc_command "$1"
diff --git a/net/openslp/files/slpd.sh.sample b/net/openslp/files/slpd.sh.sample
index 6a0f78a4820b..005d18921a5d 100644
--- a/net/openslp/files/slpd.sh.sample
+++ b/net/openslp/files/slpd.sh.sample
@@ -11,9 +11,6 @@
# slpd_enable="YES"
#
-slpd_enable="NO"
-slpd_flags="-p /var/run/slpd.pid"
-
. %%RC_SUBR%%
name=slpd
@@ -22,5 +19,8 @@ rcvar=`set_rcvar`
command=%%PREFIX%%/sbin/slpd
pidfile="/var/run/${name}.pid"
+[ -z "$slpd_enable" ] && slpd_enable="NO"
+[ -z "$slpd_flags" ] && slpd_flags="-p /var/run/slpd.pid"
+
load_rc_config ${name}
run_rc_command "$1"