aboutsummaryrefslogtreecommitdiffstats
path: root/security/barnyard2
diff options
context:
space:
mode:
authorgabor <gabor@FreeBSD.org>2011-10-12 08:48:13 +0800
committergabor <gabor@FreeBSD.org>2011-10-12 08:48:13 +0800
commit927b97182b1185bec05b09caf5ce0dd6c3291328 (patch)
tree275dd1fba59c3aa5ff65f1ffd876cd99c29cf0d0 /security/barnyard2
parente906a5909968d338534be8cf96726e43dd09a64e (diff)
downloadfreebsd-ports-gnome-927b97182b1185bec05b09caf5ce0dd6c3291328.tar.gz
freebsd-ports-gnome-927b97182b1185bec05b09caf5ce0dd6c3291328.tar.zst
freebsd-ports-gnome-927b97182b1185bec05b09caf5ce0dd6c3291328.zip
- Fix support of status and restart for multi-config rc script
PR: ports/161168 Submitted by: Michael Scheidell <scheidell@secnap.net> Approved by: Paul Schmehl <pauls@utdallas.edu> (maintainer)
Diffstat (limited to 'security/barnyard2')
-rw-r--r--security/barnyard2/files/barnyard2.sh.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/security/barnyard2/files/barnyard2.sh.in b/security/barnyard2/files/barnyard2.sh.in
index 043461583ab9..b51d9f05e933 100644
--- a/security/barnyard2/files/barnyard2.sh.in
+++ b/security/barnyard2/files/barnyard2.sh.in
@@ -37,13 +37,18 @@ command_args="-c ${barnyard2_conf} -D"
load_rc_config $name
if [ -n "${barnyard2_rules}" ];then
+ _1=$1
+ rc=0
+ if [ $# -gt 1 ];then shift; barnyard2_rules=$*; fi
for i in ${barnyard2_rules}; do
echo -n "$i:"
eval barnyard2_flags=\$barnyard2_${i}_flags
eval pidfile=\$barnyard2_${i}_pidfile
eval barnyard2_conf=\$barnyard2_${i}_conf
command_args="-c $barnyard2_conf -D"
- run_rc_command "$1"
+ run_rc_command "$_1"
+ if [ $? -ne 0 ];then rc=1 ; fi
+ unset _pidcmd _rc_restart_done
done
else
run_rc_command "$1"