[Tools 1/3] testbot/scripts: The WineTestBot does not support SIGHUP so emulate 'initd reload' through try-restart.
Francois Gouget
fgouget at codeweavers.com
Tue Mar 26 05:49:09 CDT 2013
---
testbot/scripts/initd | 19 ++-----------------
1 file 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 "
--
1.7.10.4
More information about the wine-patches
mailing list