[omd-commits] OMD Git: omd: shinken: cleanup command file on start

git version control git at mathias-kettner.de
Mon Apr 25 00:11:24 CEST 2011


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

Author:   Sven Nierlein <sven at nierlein.de>
Date:     Mon Apr 25 00:11:09 2011 +0200
Commiter: Sven Nierlein <sven at nierlein.de>
Date:     Mon Apr 25 00:11:09 2011 +0200

shinken: cleanup command file on start

---

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

diff --git a/packages/shinken/skel/etc/init.d/shinken b/packages/shinken/skel/etc/init.d/shinken
index e234505..faa8757 100755
--- a/packages/shinken/skel/etc/init.d/shinken
+++ b/packages/shinken/skel/etc/init.d/shinken
@@ -288,6 +288,9 @@ do_start() {
             pid=`getmodpid $mod`;
             echo "ALREADY RUNNING (pid $pid)"
         else
+            if [ "$mod" = "broker" ]; then
+                rm -f $TMP/run/nagios.cmd
+            fi
             if [ $mod != "arbiter" ]; then
                 output=`$BIN/shinken-${mod} -d -c $ETC/${mod}d.ini $DEBUGCMD 2>&1`
             else



More information about the omd-commits mailing list