[omd-commits] OMD Git: omd: shinken: init-script stop/ status now ignores unconfigured daemons

git version control git at mathias-kettner.de
Wed Jan 11 20:13:18 CET 2012


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

Author:   Gerhard Lausser <gerhard.lausser at consol.de>
Date:     Wed Jan 11 20:12:17 2012 +0100
Commiter: Gerhard Lausser <gerhard.lausser at consol.de>
Date:     Wed Jan 11 20:12:17 2012 +0100

shinken: init-script stop/status now ignores unconfigured daemons

---

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

diff --git a/packages/shinken/skel/etc/init.d/shinken b/packages/shinken/skel/etc/init.d/shinken
index a4e92e8..1454d4e 100644
--- a/packages/shinken/skel/etc/init.d/shinken
+++ b/packages/shinken/skel/etc/init.d/shinken
@@ -260,6 +260,25 @@ EOTXT
 	check_external_commands=1
 	log_file=$VAR/nagios/nagios.log
 EOTXT
+    ;;
+stop|status)
+    # only update the AVAIL_MODULES list
+    if [ "${SHINKEN_SCHEDULERD_PORT}" = "none" ]; then
+      AVAIL_MODULES=${AVAIL_MODULES/scheduler/} 
+    fi
+    if [ "${SHINKEN_POLLERD_PORT}" = "none" ]; then
+      AVAIL_MODULES=${AVAIL_MODULES/poller/}
+    fi
+    if [ "${SHINKEN_REACTIONNERD_PORT}" = "none" ]; then
+      AVAIL_MODULES=${AVAIL_MODULES/reactionner/}
+    fi
+    if [ "${SHINKEN_BROKERD_PORT}" = "none" ]; then
+      AVAIL_MODULES=${AVAIL_MODULES/broker/}
+    fi 
+    if [ "${SHINKEN_ARBITERD_PORT}" = "none" ]; then
+      AVAIL_MODULES=${AVAIL_MODULES/arbiter/}
+    fi
+    ;; 
 esac
 
 usage() {



More information about the omd-commits mailing list