diff options
Diffstat (limited to 'net/istgt/files/patch-istgt-rc')
-rw-r--r-- | net/istgt/files/patch-istgt-rc | 33 |
1 files changed, 23 insertions, 10 deletions
diff --git a/net/istgt/files/patch-istgt-rc b/net/istgt/files/patch-istgt-rc index 9aafa4904853..4065054989a3 100644 --- a/net/istgt/files/patch-istgt-rc +++ b/net/istgt/files/patch-istgt-rc @@ -1,17 +1,26 @@ --- etc/istgt.sh.in.orig 2011-08-31 11:53:08.000000000 -0700 -+++ etc/istgt.sh.in 2012-03-07 17:12:49.615160257 -0800 -@@ -9,6 +9,7 @@ ++++ etc/istgt.sh.in 2012-05-05 20:27:54.000000000 -0700 +@@ -8,19 +8,28 @@ + . /etc/rc.subr name="istgt" - rcvar=`set_rcvar` -+reload_cmd="istgt_reload" - extra_commands="reload" +-rcvar=`set_rcvar` +-extra_commands="reload" ++rcvar=istgt_enable load_rc_config $name -@@ -18,6 +19,14 @@ - : ${istgt_pidfile="/var/run/istgt.pid"} - : ${istgt_flags=""} +-: ${istgt_enable="NO"} ++: ${istgt_enable:="NO"} + : ${istgt_config="%%CONFIGDIR%%/istgt.conf"} +-: ${istgt_pidfile="/var/run/istgt.pid"} +-: ${istgt_flags=""} ++ ++pidfile=${istgt_pidfile:-"/var/run/istgt.pid"} ++ ++reload_cmd="istgt_reload" ++extra_commands="reload" ++ +# +# Refresh configuration +# @@ -19,7 +28,11 @@ +{ + %%BINDIR%%/istgtcontrol refresh +} -+ + required_files="${istgt_config}" - pidfile="${istgt_pidfile}" +-pidfile="${istgt_pidfile}" command="%%BINDIR%%/istgt" +-command_args="-c ${istgt_config} ${istgt_flags}" ++command_args="-c ${istgt_config}" + + run_rc_command "$1" |