[SCM] icecast2/master: When stopping, send TERM after 5 seconds, wait at most 30 seconds.

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Wed Dec 8 07:33:15 UTC 2010


The following commit has been merged in the master branch:
commit ecfb9de4f147f5166181707a6dfb29b99c5debce
Author: Alessio Treglia <alessio at debian.org>
Date:   Wed Dec 8 08:32:34 2010 +0100

    When stopping, send TERM after 5 seconds, wait at most 30 seconds.

diff --git a/debian/icecast2.init b/debian/icecast2.init
index 96c0aef..c0bc1b6 100644
--- a/debian/icecast2.init
+++ b/debian/icecast2.init
@@ -51,7 +51,8 @@ case "$1" in
 	;;
   stop)
 	echo -n "Stopping $DESC: "
-	start-stop-daemon --stop --oknodo --quiet --exec $DAEMON
+	# Send TERM after 5 seconds, wait at most 30 seconds.
+	start-stop-daemon --stop --oknodo --retry TERM/5/0/30 --quiet --exec $DAEMON
 	echo "$NAME."
 	;;
   reload|force-reload)

-- 
icecast2 packaging



More information about the pkg-multimedia-commits mailing list