[omd-commits] OMD Git: omd: shinken: make sure processes are really stopped in omd stop

git version control git at mathias-kettner.de
Fri Apr 5 12:53:36 CEST 2013


Module:   omd
Branch:   master
Commit:   98fd2be41e0e8d039efb3fd10a0dc9e554a888fb
URL:      http://omdistro.org/projects/omd/repository/revisions/98fd2be41e0e8d039efb3fd10a0dc9e554a888fb

Author:   Gerhard Lausser <gerhard.lausser at consol.de>
Date:     Fri Apr  5 10:01:37 2013 +0200
Commiter: Gerhard Lausser <gerhard.lausser at consol.de>
Date:     Fri Apr  5 10:01:37 2013 +0200

shinken: make sure processes are really stopped in omd stop

---

 packages/shinken/skel/etc/init.d/shinken |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/packages/shinken/skel/etc/init.d/shinken b/packages/shinken/skel/etc/init.d/shinken
index e68b8ff..f9e5883 100644
--- a/packages/shinken/skel/etc/init.d/shinken
+++ b/packages/shinken/skel/etc/init.d/shinken
@@ -347,6 +347,11 @@ do_stop() {
             done
             if [ $running -gt 0 ]; then
                 echo "FAIL"
+                # stop means stop
+                for cpid in $(ps -aefw | grep $pid | grep "shinken-" | awk '{print $2}' | sort -g -r); do
+                    kill -9 $cpid > /dev/null 2>&1
+                    #printf "."
+                done
             else
                 echo "OK"
             fi



More information about the omd-commits mailing list