[omd-commits] OMD Git: omd: thruk: reload crontab only if already running

git version control git at mathias-kettner.de
Wed Apr 3 17:56:09 CEST 2013


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

Author:   Sven Nierlein <Sven.Nierlein at consol.de>
Date:     Wed Apr  3 16:30:26 2013 +0200
Commiter: Sven Nierlein <sven at consol.de>
Date:     Wed Apr  3 16:30:55 2013 +0200

thruk: reload crontab only if already running

---

 packages/thruk/skel/etc/thruk/reload_cron.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/packages/thruk/skel/etc/thruk/reload_cron.sh b/packages/thruk/skel/etc/thruk/reload_cron.sh
index e2761b5..f47b7db 100644
--- a/packages/thruk/skel/etc/thruk/reload_cron.sh
+++ b/packages/thruk/skel/etc/thruk/reload_cron.sh
@@ -7,4 +7,5 @@ if [ "$CONFIG_APACHE_MODE" = "shared" -a $(/usr/bin/id -un) != $OMD_SITE ]; then
     exit 0
 fi
 
-omd restart crontab
+$OMD_ROOT/etc/init.d/crontab status >/dev/null && $OMD_ROOT/etc/init.d/crontab restart
+exit 0



More information about the omd-commits mailing list