diff options
author | marcus <marcus@FreeBSD.org> | 2004-07-22 03:56:49 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2004-07-22 03:56:49 +0800 |
commit | 57898ef2db34c492ceb8114e059fc209023ac4d7 (patch) | |
tree | 26c9a8c39f97f9a390b01a8103e0f725f051914a /net | |
parent | 59dec445d1542b0ba1c40e3389c7a4e0153dab0f (diff) | |
download | freebsd-ports-gnome-57898ef2db34c492ceb8114e059fc209023ac4d7.tar.gz freebsd-ports-gnome-57898ef2db34c492ceb8114e059fc209023ac4d7.tar.zst freebsd-ports-gnome-57898ef2db34c492ceb8114e059fc209023ac4d7.zip |
Properly setup rc.d default macros.
Reminded by: eik
Diffstat (limited to 'net')
-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" |