Package: fetchmail
Version: 6.3.9~rc2-3
Severity: wishlist
Tags: patch
Usertags: origin-ubuntu intrepid ubuntu-patch

Hi,

For daemons that do not require clean shutdown to perform their
operation, not explicitly stopping the daemon in runlevels 0 and 6, but 
letting sendsigs take care of stopping it, can speed-up the shutdown process.

This has been used in Ubuntu for a while [1] but the policy has recently been 
changed to make it compatible with Debian [2]. The suitability  of this 
approach for Debian has been discussed in [3]; I'm therefore forwarding to 
you this patch for you to consider if your package may benefit from this 
change too.

Thanks,

Cesare
[1]https://wiki.ubuntu.com/Teardown
[2]https://lists.ubuntu.com/archives/ubuntu-devel-announce/2008-June/000430.html
[3]http://lists.debian.org/debian-devel/2008/07/msg00005.html
diff -u fetchmail-6.3.9~rc2/debian/init fetchmail-6.3.9~rc2/debian/init
--- fetchmail-6.3.9~rc2/debian/init
+++ fetchmail-6.3.9~rc2/debian/init
@@ -8,7 +8,7 @@
 # Required-Start:    $network $local_fs $remote_fs
 # Required-Stop:
 # Default-Start:     2 3 4 5
-# Default-Stop:      0 1 6
+# Default-Stop:      1
 # Short-Description: init-Script for system wide fetchmail daemon
 ### END INIT INFO
 #
diff -u fetchmail-6.3.9~rc2/debian/fetchmail.postinst fetchmail-6.3.9~rc2/debian/fetchmail.postinst
--- fetchmail-6.3.9~rc2/debian/fetchmail.postinst
+++ fetchmail-6.3.9~rc2/debian/fetchmail.postinst
@@ -59,7 +59,7 @@
 esac
  
 if [ -x /etc/init.d/fetchmail ]; then
-	update-rc.d fetchmail defaults 99 15 >/dev/null
+	update-rc.d fetchmail start 99 2 3 4 5 . stop 15 1 >/dev/null
 
 	if [ -x /usr/sbin/invoke-rc.d ]; then
 		invoke-rc.d --quiet fetchmail start || true

Reply via email to