Package: system-tools-backends
Version: 2.6.0-1
Severity: wishlist
Tags: patch
User: [EMAIL PROTECTED]
Usertags: origin-ubuntu intrepid ubuntu-patch
Hi,
Given that in runlevels 0 and 6 there is an init script that terminates
all running processes it is a waste to run an init script for each
process before that. In Ubuntu we remove the scripts that do nothing
more than terminate a process, and rely on the final script to clean up
the running processes. Please see
https://wiki.ubuntu.com/Teardown
for more information.
Attached is a patch to do this for Debian. Please consider applying it.
Note that the version number in the system-tools-backends should be
adjusted to be the version number of whatever version this patch
is applied. Please also double check the names of the symlinks that
are being removed.
Thanks,
James
=== modified file 'debian/rules'
--- debian/rules 2008-06-25 11:13:03 +0000
+++ debian/rules 2008-07-01 10:49:51 +0000
@@ -28,7 +28,7 @@
--with-net-dbus=/usr/lib/perl5 \
--with-stb-group=stb-admin
-DEB_DH_INSTALLINIT_ARGS := -- start 30 2 3 4 5 . stop 30 0 1 6 .
+DEB_DH_INSTALLINIT_ARGS := -- start 30 2 3 4 5 . stop 30 1 .
build/system-tools-backends::
# generate POT file for translators
=== modified file 'debian/system-tools-backends.init'
--- debian/system-tools-backends.init 2008-06-25 11:13:03 +0000
+++ debian/system-tools-backends.init 2008-07-01 10:49:42 +0000
@@ -6,7 +6,7 @@
# Should-Start: $syslog
# Should-Stop: $syslog
# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
+# Default-Stop: 1
# Short-Description: Gnome System Tools Backends
# Description: The Gnome System Tools Backends daemon handles root-needed
# operations to configure your machine with the Gnome System
=== modified file 'debian/system-tools-backends.postinst'
--- debian/system-tools-backends.postinst 2008-06-25 11:13:03 +0000
+++ debian/system-tools-backends.postinst 2008-07-01 10:51:25 +0000
@@ -34,6 +34,10 @@
invoke-rc.d dbus force-reload || true
fi
fi
+ # Remove shutdown and reboot links; this init script does not need them.
+ if dpkg --compare-versions "$2" lt "2.6.0-2"; then
+ rm -f /etc/rc0.d/K30system-tools-backends /etc/rc6.d/K30system-tools-backends
+ fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;