summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2004-07-21 19:56:49 +0000
committermarcus <marcus@FreeBSD.org>2004-07-21 19:56:49 +0000
commit57898ef2db34c492ceb8114e059fc209023ac4d7 (patch)
tree26c9a8c39f97f9a390b01a8103e0f725f051914a /net
parent59dec445d1542b0ba1c40e3389c7a4e0153dab0f (diff)
downloadFreeBSD-ports-57898ef2db34c492ceb8114e059fc209023ac4d7.zip
FreeBSD-ports-57898ef2db34c492ceb8114e059fc209023ac4d7.tar.gz
Properly setup rc.d default macros.
Reminded by: eik
Diffstat (limited to 'net')
-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 6a0f78a..005d189 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 6a0f78a..005d189 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"
OpenPOWER on IntegriCloud