Package: pulseaudio
Version: 0.9.10-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/K20pulseaudio /etc/rc6.d/K20pulseaudio
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,

James
diff -pruN 0.9.10-2/debian/pulseaudio.init 0.9.10-2ubuntu3/debian/pulseaudio.init
--- 0.9.10-2/debian/pulseaudio.init	2008-08-07 10:31:37.000000000 +0100
+++ 0.9.10-2ubuntu3/debian/pulseaudio.init	2008-08-07 09:47:12.000000000 +0100
@@ -6,7 +6,7 @@
 # Should-Start:      dbus
 # Should-Stop:       dbus
 # Default-Start:     2 3 4 5
-# Default-Stop:      0 1 6
+# Default-Stop:      1
 # Short-Description: Start the PulseAudio sound server
 # Description:       System mode startup script for
 #                    the PulseAudio sound server.
diff -pruN 0.9.10-2/debian/rules 0.9.10-2ubuntu3/debian/rules
--- 0.9.10-2/debian/rules	2008-08-07 10:31:37.000000000 +0100
+++ 0.9.10-2ubuntu3/debian/rules	2008-08-07 09:47:12.000000000 +0100
@@ -37,4 +37,4 @@ update-patch-series:
 DEB_CONFIGURE_EXTRA_FLAGS = --with-realtime-group=pulse-rt
 DEB_DH_MAKESHLIBS_ARGS_ALL = --exclude=usr/lib/pulse-0.9/modules
 DEB_DH_INSTALL_ARGS = --sourcedir=$(CURDIR)/debian/tmp
-DEB_UPDATE_RCD_PARAMS = defaults 25 15
+DEB_UPDATE_RCD_PARAMS = start 25 2 3 4 5 . stop 15 1 .

Reply via email to