[Pkg-sysvinit-devel] Bug#484607: sysv-rc: Start scripts in runlevel 0 or 6 might not be run
Neil T.
neil1357 at gmail.com
Thu Jun 5 06:29:01 UTC 2008
Package: sysv-rc
Version: 2.86.ds1-58
Severity: important
Tags: patch
I noticed that none of the start scripts in runlevel 0 or runlevel 6
were being run since my PC no longer powers itself off after I type
"shutdown -h now", nor does it perform the usual shutdown tasks such
as unmounting filesystems.
The problem appears to be caused by a patch against /etc/init.d/rc from
bug 483172. The patch uses $previous_stop without initializing it, so it
retains its value from the preceding code (which processes kill
scripts). If $previous_stop refers to a file that exists, it can
inadvertently prevent some of the start scripts in runlevel 0 or
runlevel 6 from running.
The attached patch fixes the problem (at least for me).
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.25.2 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
sysv-rc depends on no packages.
Versions of packages sysv-rc recommends:
ii lsb-base 3.2-12 Linux Standard Base 3.2 init scrip
-- no debconf information
-------------- next part --------------
--- /etc/init.d/rc.orig 2008-06-04 22:41:23.741208365 -0700
+++ /etc/init.d/rc 2008-06-04 22:41:49.031200073 -0700
@@ -344,6 +344,7 @@
#
suffix=${i#/etc/rc$runlevel.d/S[0-9][0-9]}
stop=/etc/rc$runlevel.d/K[0-9][0-9]$suffix
+ previous_stop=/etc/rc$previous.d/K[0-9][0-9]$suffix
previous_start=/etc/rc$previous.d/S[0-9][0-9]$suffix
#
# If there is a start script in the previous level
More information about the Pkg-sysvinit-devel
mailing list