diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2004-07-21 19:56:49 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2004-07-21 19:56:49 +0000 |
commit | c3dcb4a96513c113154193379540f90d6939c483 (patch) | |
tree | 3ec61699e512e8010efce294b6e2a6ff4e11161a /net/openslp | |
parent | a408c6430fe1818afdfe15bf36bc1528e50b4807 (diff) | |
download | ports-c3dcb4a96513c113154193379540f90d6939c483.tar.gz ports-c3dcb4a96513c113154193379540f90d6939c483.zip |
Notes
Diffstat (limited to 'net/openslp')
-rw-r--r-- | net/openslp/files/slpd.in | 6 | ||||
-rw-r--r-- | net/openslp/files/slpd.sh.sample | 6 |
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" |