[omd-commits] OMD Git: omd: Mod-Gearman: neb module has to be unloaded when switched off

git version control git at mathias-kettner.de
Sun May 22 09:44:00 CEST 2011


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

Author:   Sven Nierlein <sven at nierlein.de>
Date:     Sun May 22 09:43:53 2011 +0200
Commiter: Sven Nierlein <sven at nierlein.de>
Date:     Sun May 22 09:43:53 2011 +0200

Mod-Gearman: neb module has to be unloaded when switched off

---

 packages/mod-gearman/MOD_GEARMAN.hook |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/packages/mod-gearman/MOD_GEARMAN.hook b/packages/mod-gearman/MOD_GEARMAN.hook
index 08ee556..765d39b 100755
--- a/packages/mod-gearman/MOD_GEARMAN.hook
+++ b/packages/mod-gearman/MOD_GEARMAN.hook
@@ -21,6 +21,8 @@ case "$1" in
         if [ "$2" = "on" ]; then
             mkdir -p $OMD_ROOT/etc/nagios/nagios.d
             ln -sfn ../../mod-gearman/nagios.cfg $OMD_ROOT/etc/nagios/nagios.d/mod-gearman.cfg
+        else
+            rm -f $OMD_ROOT/etc/nagios/nagios.d/mod-gearman.cfg
         fi
     ;;
 esac



More information about the omd-commits mailing list