Skip to content

Commit

Permalink
Merge branch 'branches/rudder/3.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
jooooooon committed Nov 30, 2015
2 parents 0cffe16 + 976a34a commit d9ab125
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions rudder-agent/SOURCES/rudder-agent.init
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,11 @@ forcestop_daemons() {
# If the pid file is not readable or is empty, kill all process by name
if eval [ ! -r "\${CFENGINE_COMMUNITY_PID_FILE_$daemon}" ] || eval [ ! -s "\${CFENGINE_COMMUNITY_PID_FILE_$daemon}" ]
then
# Try a killall
if [ -x /bin/pidof ]
if type pidof > /dev/null 2> /dev/null; then
then
/bin/kill -KILL `eval /bin/pidof "\\\${CFENGINE_COMMUNITY_BIN_$daemon}"`
kill -KILL `eval pidof "\\\${CFENGINE_COMMUNITY_BIN_$daemon}"`
else
# Try a killall
eval /usr/bin/killall -KILL "\${CFENGINE_COMMUNITY_BIN_$daemon}"
fi

Expand Down
12 changes: 6 additions & 6 deletions rudder-inventory-ldap/SOURCES/rudder-inventory-ldap.init
Original file line number Diff line number Diff line change
Expand Up @@ -588,11 +588,11 @@ forcestop() {
then
message "info" "[INFO] Found no rudder-slapd process running with $SLAPD_SERVICES"
else
# Try a killall
if [ -x /bin/pidof ]
if type pidof > /dev/null 2> /dev/null
then
/bin/kill -KILL `/bin/pidof ${SLAPD_BIN}`
kill -KILL `pidof ${SLAPD_BIN}`
else
# Try a killall
/usr/bin/killall -KILL ${SLAPD_BIN}
fi

Expand Down Expand Up @@ -628,11 +628,11 @@ forcestop() {
then
message "info" "[INFO] Found no slurpd process running"
else
# Try a killall
if [ -x /bin/pidof ]
if type pidof > /dev/null 2> /dev/null
then
/bin/kill -KILL `/bin/pidof ${SLURPD_BIN}`
kill -KILL `pidof ${SLURPD_BIN}`
else
# Try a killall
/usr/bin/killall -KILL ${SLURPD_BIN}
fi

Expand Down

0 comments on commit d9ab125

Please sign in to comment.