Francois Gouget : testbot/scripts: The WineTestBot does not support SIGHUP so emulate 'initd reload' through try-restart.

Alexandre Julliard julliard at winehq.org
Tue Mar 26 11:52:22 CDT 2013


Module: tools
Branch: master
Commit: 0a7915b95b3279c5dd1df4bf8f300c24cbc025f8
URL:    http://source.winehq.org/git/tools.git/?a=commit;h=0a7915b95b3279c5dd1df4bf8f300c24cbc025f8

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Tue Mar 26 11:49:09 2013 +0100

testbot/scripts: The WineTestBot does not support SIGHUP so emulate 'initd reload' through try-restart.

---

 testbot/scripts/initd |   19 ++-----------------
 1 files changed, 2 insertions(+), 17 deletions(-)

diff --git a/testbot/scripts/initd b/testbot/scripts/initd
index 8853f6c..d782cbc 100755
--- a/testbot/scripts/initd
+++ b/testbot/scripts/initd
@@ -86,7 +86,7 @@ then
         $0 start
         ;;
 
-    try-restart)
+    try-restart|reload)
         ## Do a restart only if the service was active before.
         if $0 status
         then
@@ -94,12 +94,6 @@ then
         fi
         ;;
 
-    reload)
-	log_daemon_msg "Reloading the WineTestBot configuration"
-        killproc -p $PIDFILE $DAEMON -HUP
-	log_end_msg $?
-        ;;
-
     status)
         status="0"
         pidofproc -p $PIDFILE $DAEMON >/dev/null || status="$?"
@@ -184,7 +178,7 @@ then
             # Remember status and be verbose
             rc_status -v
             ;;
-        try-restart|condrestart)
+        try-restart|condrestart|reload)
             ## Do a restart only if the service was active before.
             ## Note: try-restart is now part of LSB (as of 1.9).
             ## RH has a similar command named condrestart.
@@ -209,15 +203,6 @@ then
             # Remember status and be quiet
             rc_status
             ;;
-        reload)
-            log_daemon_msg "Reloading service WineTestBot"
-            killproc -HUP $DAEMON
-            log_end_msg $?
-
-            ## Otherwise if it does not support reload:
-            #rc_failed 3
-            #rc_status -v
-            ;;
     status)
         status_of_proc $DAEMON
         echo -n "Checking for service WineTestBot "




More information about the wine-cvs mailing list