[SCM] Debian packaging for the 2.0 Apache Shibboleth SP branch, bug/init, updated. upstream/2.1.dfsg1-3-gc8b4132

Russ Allbery rra at debian.org
Wed Oct 15 04:02:10 UTC 2008


The following commit has been merged in the bug/init branch:
commit c8b41322ef1e8f8cc0c71f06f06206329e326094
Author: Russ Allbery <rra at debian.org>
Date:   Tue Oct 14 20:58:36 2008 -0700

    Indent long description and wait for shibd to exit
    
    Rather than just sending shibd a signal and assuming success, wait for it
    to exit, since it can take some time to stop after a TERM signal.  This
    should fix restart problems where shibd wasn't started because the prior
    version had not exited yet.

diff --git a/configs/shibd-debian.in b/configs/shibd-debian.in
index 75c0bb9..7ffc1f6 100644
--- a/configs/shibd-debian.in
+++ b/configs/shibd-debian.in
@@ -7,8 +7,8 @@
 # Default-Stop: 0 1 6
 # Short-Description: Shibboleth 2 Service Provider Daemon
 # Description: Starts the separate daemon used by the Shibboleth
-# Apache module to manage sessions and to retrieve
-# attributes from Shibboleth Identity Providers.
+#              Apache module to manage sessions and to retrieve
+#              attributes from Shibboleth Identity Providers.
 ### END INIT INFO
 #
 # Written by Quanah Gibson-Mount <quanah at stanford.edu>
@@ -63,14 +63,13 @@ start)
 stop)
     echo -n "Stopping $DESC: "
     start-stop-daemon --stop --quiet --pidfile $PIDFILE \
-        --exec $DAEMON
+        --retry TERM/30/KILL/5 --exec $DAEMON
     echo "$NAME."
     ;;
 restart|force-reload)
     echo -n "Restarting $DESC: "
     start-stop-daemon --stop --quiet --pidfile $PIDFILE \
-        --exec $DAEMON
-    sleep 1
+        --retry TERM/30/KILL/5 --exec $DAEMON
     start-stop-daemon --background --start --quiet \
         --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_OPTS
     echo "$NAME."

-- 
Debian packaging for the 2.0 Apache Shibboleth SP



More information about the Pkg-shibboleth-devel mailing list