Your message dated Thu, 12 Mar 2009 03:32:22 +0100
with message-id <[email protected]>
and subject line fixed by using dbus activation
has caused the Debian Bug report #488796,
regarding system-tools-backends: No need to stop in runlevels 0 and 6
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
488796: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488796
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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)
   ;;


--- End Message ---
--- Begin Message ---
Version: 2.6.0-3

As s-t-b is now started on demand and no longer ships any init scripts, I think
this bug can be closed.
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

Reply via email to