Package: sensord
Version: 3.0.2
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.

You will also need a postinst snippet to remove the existing stop
links. This will look something like

# Remove shutdown and reboot links; this init script does not need them.
if dpkg --compare-versions "$2" lt "<version where patch is applied>";
then
        rm -f /etc/rc0.d/K20sensord /etc/rc6.d/K20sensord
fi

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 -purN lm-sensors-3-3.0.2/debian/rules lm-sensors-3-3.0.2-ubuntu/debian/rules
--- lm-sensors-3-3.0.2/debian/rules	2008-08-16 15:42:48.000000000 +0200
+++ lm-sensors-3-3.0.2-ubuntu/debian/rules	2008-08-15 17:15:54.000000000 +0200
@@ -81,7 +81,7 @@ binary-arch: build install
 	dh_installdocs -s -XCVS
 	dh_installexamples -s -XCVS -XModule.mk
 	dh_installmodules -n -s --name=i2c
-	dh_installinit -psensord
+	dh_installinit -psensord -- start 20 2 3 4 5 . stop 20 1 .
 	dh_installinit -plm-sensors --name=fancontrol --no-restart-on-upgrade
 	dh_installinit -plm-sensors --name=lm-sensors --no-start -- start 47 S .
 	dh_installman -s
diff -purN lm-sensors-3-3.0.2/debian/sensord.init lm-sensors-3-3.0.2-ubuntu/debian/sensord.init
--- lm-sensors-3-3.0.2/debian/sensord.init	2008-08-16 15:42:48.000000000 +0200
+++ lm-sensors-3-3.0.2-ubuntu/debian/sensord.init	2008-08-15 17:19:09.000000000 +0200
@@ -5,7 +5,7 @@
 # Required-Start:    $local_fs $syslog lm-sensors
 # Required-Stop:     $local_fs $syslog
 # Default-Start:     2 3 4 5
-# Default-Stop:      0 1 6
+# Default-Stop:      1
 # Short-Description: lm-sensors daemon
 # Description:       hardware sensor information logging daemon
 ### END INIT INFO

Reply via email to