[hipl-dev] [Branch ~hipl-core/hipl/trunk] Rev 5953: Print notices when starting / stopping hipd via init script.

  • From: noreply@xxxxxxxxxxxxx
  • To: HIPL core team <hipl-dev@xxxxxxxxxxxxx>
  • Date: Tue, 07 Jun 2011 15:30:50 -0000

------------------------------------------------------------
revno: 5953
committer: David Martin <david.martin.mailbox@xxxxxxxxxxxxxx>
branch nick: hipl_init-scripts
timestamp: Tue 2011-06-07 17:25:35 +0200
message:
  Print notices when starting / stopping hipd via init script.
  
  When hipd is already running or already stopped when calling start
  or stop in the init script it should print a notice about it and
  not just report OK.
modified:
  debian/hipl-daemon.init


--
lp:hipl
https://code.launchpad.net/~hipl-core/hipl/trunk

Your team HIPL core team is subscribed to branch lp:hipl.
To unsubscribe from this branch go to 
https://code.launchpad.net/~hipl-core/hipl/trunk/+edit-subscription
=== modified file 'debian/hipl-daemon.init'
--- debian/hipl-daemon.init     2011-06-07 14:33:45 +0000
+++ debian/hipl-daemon.init     2011-06-07 15:25:35 +0000
@@ -24,7 +24,7 @@
 
 start_hipd() {
     log_daemon_msg "Starting HIP daemon" "hipd"
-    if start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/hipd -- 
$HIPD_OPTS; then
+    if start-stop-daemon --start --oknodo --exec /usr/sbin/hipd -- $HIPD_OPTS; 
then
         log_end_msg 0
     else
         log_end_msg 1
@@ -34,7 +34,7 @@
 stop_hipd() {
     log_daemon_msg "Stopping HIP daemon" "hipd"
     # send TERM to hipd and if it is still running after 3 seconds send KILL
-    if start-stop-daemon --stop --quiet --retry 3 --oknodo --exec 
/usr/sbin/hipd; then
+    if start-stop-daemon --stop --retry 3 --oknodo --exec /usr/sbin/hipd; then
         log_end_msg 0
     else
         log_end_msg 1

Other related posts:

  • » [hipl-dev] [Branch ~hipl-core/hipl/trunk] Rev 5953: Print notices when starting / stopping hipd via init script. - noreply