From 51366ebced0c01cbb66ef5040ed521dbed82e316 Mon Sep 17 00:00:00 2001 From: Erik Johnson Date: Mon, 13 Apr 2015 15:40:35 -0500 Subject: [PATCH] Remove logic that kills "rogue" PIDs Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1210316 --- salt-minion | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/salt-minion b/salt-minion index 214f895..2b25c4c 100644 --- a/salt-minion +++ b/salt-minion @@ -68,7 +68,7 @@ start() { RETVAL=$? echo -n "already running" else - daemon --check $SERVICE $SALTMINION -d $MINION_ARGS + daemon --check $SERVICE $SALTMINION -d $MINION_ARGS fi fi RETVAL=$? @@ -94,16 +94,6 @@ stop() { else killproc $PROCESS RETVAL=$? - # tidy up any rogue processes: - PROCS=`ps -ef | grep "$SALTMINION" | grep -v grep | awk '{print $2}'` - if [ -n "$PROCS" ]; then - kill $PROCS &> /dev/null - sleep 1 - PROCS=`ps -ef | grep "$SALTMINION" | grep -v grep | awk '{print $2}'` - if [ -n "$PROCS" ]; then - kill -9 $PROCS &> /dev/null - fi - fi fi echo }