[Pkg-nagios-changes] [pkg-icinga2] 01/03: Run check_run only in do_start()

Alexander Wirt formorer at debian.org
Mon Jun 16 06:48:19 UTC 2014


This is an automated email from the git hooks/post-receive script.

formorer pushed a commit to branch master
in repository pkg-icinga2.

commit f4e1a77ef34f64e29c12a81720fcb912ded0bb42
Author: Alexander Wirt <formorer at debian.org>
Date:   Sun Jun 15 20:12:09 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-icinga2.git



More information about the Pkg-nagios-changes mailing list