[omd-commits] OMD Git: omd: shinken: fix a bug in the mongodb-init-file

git version control git at mathias-kettner.de
Wed Apr 4 17:34:49 CEST 2012


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

Author:   Gerhard Lausser <gerhard.lausser at consol.de>
Date:     Wed Apr  4 17:34:03 2012 +0200
Commiter: Gerhard Lausser <gerhard.lausser at consol.de>
Date:     Wed Apr  4 17:34:03 2012 +0200

shinken: fix a bug in the mongodb-init-file

---

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

diff --git a/packages/shinken/skel/etc/init.d/mongodb b/packages/shinken/skel/etc/init.d/mongodb
index 68f8444..388a5b4 100644
--- a/packages/shinken/skel/etc/init.d/mongodb
+++ b/packages/shinken/skel/etc/init.d/mongodb
@@ -51,6 +51,11 @@ GRP=###SITE###
 # OMD: create configuration file out of fragments
 case "$1" in start|restart|reload|checkconfig|check)
     mkdir -p $DATA_DIR
+    mkdir -p $(dirname $CFG_FILE) 
+    merge-nagios-config \
+        ###ROOT###/etc/mongodb/mongod.cfg \
+        # ###ROOT###/etc/mongodb/mongod.d/* \
+        > $CFG_FILE || rm -f $CFG_FILE
 esac
 
 OPTIONS="--quiet --config $CFG_FILE"



More information about the omd-commits mailing list