Package: keepalived
Version: 1.1.15
Severity: wishlist
Tags: patch
User: [EMAIL PROTECTED]
Usertags: origin-ubuntu intrepid ubuntu-patch

Hi,

For daemons that do not require clean shutdown to perform their
operation it is possible to not explicitly stop the daemon in
runlevels 0 and 6, and let sendsigs take care of stopping the
daemon.

This has been used in Ubuntu for a while to speed up the shutdown
process. The policy has recently been changed to make it compatible
with Debian, and so I am now forwarding you the patch that can
help to bring these benefits in to Debian.

Please consider applying the attached patch, ensuring the the
version number in the postinst snippet is updated to the version
in which you apply the patch.

You can read more on this subject at

https://wiki.ubuntu.com/Teardown
https://lists.ubuntu.com/archives/ubuntu-devel-announce/2008-June/000430.html
http://lists.debian.org/debian-devel/2008/07/msg00005.html

Thanks,

Didier
diff -pruN keepalived-1.1.15/debian/init.d keepalived-1.1.15-ubuntu/debian/init.d
--- keepalived-1.1.15/debian/init.d	2008-08-16 15:46:48.000000000 +0200
+++ keepalived-1.1.15-ubuntu/debian/init.d	2008-08-16 15:37:08.000000000 +0200
@@ -9,7 +9,7 @@
 # Required-Start:    $syslog $network
 # Required-Stop:     $syslog $network
 # Default-Start:     2 3 4 5
-# Default-Stop:      0 1 6
+# Default-Stop:      1
 # Short-Description: Starts keepalived
 # Description:       Starts keepalived lvs loadbalancer
 ### END INIT INFO
diff -pruN keepalived-1.1.15/debian/keepalived.postinst keepalived-1.1.15-ubuntu/debian/keepalived.postinst
--- keepalived-1.1.15/debian/keepalived.postinst	1970-01-01 01:00:00.000000000 +0100
+++ keepalived-1.1.15-ubuntu/debian/keepalived.postinst	2008-08-16 15:37:08.000000000 +0200
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# Remove shutdown and reboot links; this init script does not need them.
+if dpkg --compare-versions "$2" lt "1.1.12-1ubuntu1"; then
+	rm -f /etc/rc0.d/K20keepalived /etc/rc6.d/K20keepalived
+fi
+
+#DEBHELPER#
diff -pruN keepalived-1.1.15/debian/rules keepalived-1.1.15-ubuntu/debian/rules
--- keepalived-1.1.15/debian/rules	2008-08-16 15:46:48.000000000 +0200
+++ keepalived-1.1.15-ubuntu/debian/rules	2008-08-16 15:37:08.000000000 +0200
@@ -4,6 +4,7 @@ include /usr/share/cdbs/1/rules/debhelpe
 include /usr/share/cdbs/1/rules/simple-patchsys.mk
 include /usr/share/cdbs/1/class/autotools.mk
 
+DEB_UPDATE_RCD_PARAMS := start 20 2 3 4 5 . stop 20 1 .
 DEB_CONFIGURE_EXTRA_FLAGS := --with-kernel-dir=$(CURDIR)/debian
 DEB_AUTO_UPDATE_AUTOCONF = 1 
 

Reply via email to