summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
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