diff --git a/src/im_mad/remotes/common.d/monitord-client-shepherd.sh b/src/im_mad/remotes/common.d/monitord-client-shepherd.sh index d480253f32..c9656a2bdb 100755 --- a/src/im_mad/remotes/common.d/monitord-client-shepherd.sh +++ b/src/im_mad/remotes/common.d/monitord-client-shepherd.sh @@ -22,7 +22,7 @@ running_pid=$(cat /tmp/one-monitord-client.pid) pids=$(ps axuwww | grep -e /monitord-client.rb| grep -v grep | awk '{ print $2 }' | grep -v "^${running_pid}$") if [ -n "$pids" ]; then - kill -6 $pids + kill $pids fi ) > /dev/null diff --git a/src/im_mad/remotes/common.d/monitord-client-shepherd_local.sh b/src/im_mad/remotes/common.d/monitord-client-shepherd_local.sh index 5e86f8942d..4a0ba5dc11 100755 --- a/src/im_mad/remotes/common.d/monitord-client-shepherd_local.sh +++ b/src/im_mad/remotes/common.d/monitord-client-shepherd_local.sh @@ -31,13 +31,13 @@ pids=$(ps axuwww | grep -e "/monitord-client.rb.*${HID} " | grep -v grep | \ awk '{ print $2 }' | grep -v "^${running_pid}$") if [ -n "$pids" ]; then - kill -6 $pids + kill $pids fi oned=`ps auxwww | grep oned | grep -v grep | wc -l` if [ ${oned} -eq 0 ]; then - kill -6 ${running_pid} + kill ${running_pid} fi ) > /dev/null diff --git a/src/im_mad/remotes/dummy.d/monitord-client_control.sh b/src/im_mad/remotes/dummy.d/monitord-client_control.sh index c07fc05dde..bf763cfe0a 100755 --- a/src/im_mad/remotes/dummy.d/monitord-client_control.sh +++ b/src/im_mad/remotes/dummy.d/monitord-client_control.sh @@ -61,7 +61,7 @@ function stop_client() { local pids=$(ps axuww | grep "$CLIENT $ARGV" | grep -v grep | awk '{print $2}') if [ -n "$pids" ]; then - kill -6 $pids + kill $pids fi rm -f $CLIENT_PID_FILE diff --git a/src/im_mad/remotes/kvm-probes.d/host/beacon/monitord-client-shepherd.sh b/src/im_mad/remotes/kvm-probes.d/host/beacon/monitord-client-shepherd.sh index 0260877722..3ef8d90910 100755 --- a/src/im_mad/remotes/kvm-probes.d/host/beacon/monitord-client-shepherd.sh +++ b/src/im_mad/remotes/kvm-probes.d/host/beacon/monitord-client-shepherd.sh @@ -22,7 +22,7 @@ running_pid=$(cat /tmp/one-monitord-client.pid) pids=$(ps axuwww | grep -e "/monitord-client.rb kvm" | grep -v grep | awk '{ print $2 }' | grep -v "^${running_pid}$") if [ -n "$pids" ]; then - kill -6 $pids + kill $pids fi ) > /dev/null diff --git a/src/im_mad/remotes/lxd-probes.d/host/beacon/monitord-client-shepherd.sh b/src/im_mad/remotes/lxd-probes.d/host/beacon/monitord-client-shepherd.sh index f830755c02..6e1bbad2de 100755 --- a/src/im_mad/remotes/lxd-probes.d/host/beacon/monitord-client-shepherd.sh +++ b/src/im_mad/remotes/lxd-probes.d/host/beacon/monitord-client-shepherd.sh @@ -22,7 +22,7 @@ running_pid=$(cat /tmp/one-monitord-client.pid) pids=$(ps axuwww | grep -e "/monitord-client.rb lxd" | grep -v grep | awk '{ print $2 }' | grep -v "^${running_pid}$") if [ -n "$pids" ]; then - kill -6 $pids + kill $pids fi ) > /dev/null