[Pkg-nagios-changes] [pkg-icinga2] 06/15: Update initscript to new cli command style

Alexander Wirt formorer at debian.org
Thu Nov 20 13:22:56 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 62b4c4ba5e1caf0a2b235ed21eddeb68c1e9d3f8
Author: Alexander Wirt <formorer at debian.org>
Date:   Thu Nov 20 09:32:42 2014 +0100

    Update initscript to new cli command style
---
 debian/icinga2-common.icinga2.init | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/debian/icinga2-common.icinga2.init b/debian/icinga2-common.icinga2.init
index 5876b6d..392f91b 100644
--- a/debian/icinga2-common.icinga2.init
+++ b/debian/icinga2-common.icinga2.init
@@ -53,7 +53,7 @@ check_run () {
 }
 
 check_config () {
-  $DAEMON --validate -u "$DAEMON_USER" -g "$DAEMON_GROUP" -c "$DAEMON_CONFIG"
+  $DAEMON daemon --validate
 }
 
 #
@@ -69,7 +69,7 @@ do_start()
   start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
     || return 1
   start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
-    -c "$DAEMON_CONFIG" -u "$DAEMON_USER" -g "$DAEMON_GROUP" -d $DAEMON_ARGS \
+    daemon -d $DAEMON_ARGS \
     || return 2
   # Add code here, if necessary, that waits for the process to be ready
   # to handle requests from services started subsequently which depend
@@ -84,7 +84,7 @@ do_foreground()
   start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test \
     || return 1
   start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON -- \
-    -c "$DAEMON_CONFIG" -u "$DAEMON_USER" -g "$DAEMON_GROUP" $DAEMON_ARGS \
+    daemon $DAEMON_ARGS \
     || return 2
 }
 

-- 
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