[icinga-checkins] icinga.org: icinga2/next: Run check_run only in do_start()

git at icinga.org git at icinga.org
Sun Jun 15 20:18:37 CEST 2014


Module: icinga2
Branch: next
Commit: 63888508a4ac34bdced0a196237057b78cf8905a
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=63888508a4ac34bdced0a196237057b78cf8905a

Author: Alexander Wirt <formorer at debian.org>
Date:   Sun Jun 15 20:18:20 2014 +0200

Run check_run only in do_start()

---

 debian/icinga2-common.icinga2.init |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/debian/icinga2-common.icinga2.init b/debian/icinga2-common.icinga2.init
index 07ebe12..5876b6d 100644
--- a/debian/icinga2-common.icinga2.init
+++ b/debian/icinga2-common.icinga2.init
@@ -61,6 +61,7 @@ check_config () {
 #
 do_start()
 {
+  check_run
   # Return
   #   0 if daemon has been started
   #   1 if daemon was already running
@@ -140,8 +141,6 @@ do_check_config () {
   fi
 }
 
-check_run
-
 case "$1" in
   start)
     do_check_config



More information about the icinga-checkins mailing list