[Pkg-sysvinit-devel] Bug#309813: /etc/init.d/rc doesn't work
correct with KXXservice - links
Petter Reinholdtsen
pere at hungry.com
Wed Sep 6 12:05:32 UTC 2006
tags 309813 + pending patch
thanks
[Hermann Gottschalk]
> the /etc/init.d/rc-script doesn't handle kill-links in the
> runleveldirectories correctly. Changing from runlevel X to Y
> executes the kill-links in runlevel Y and not the kill-links in X.
I agree. It should run the kill script for the run level it is
leaving, not the one it is entering.
I've commited this patch to svn, to solve it.
Index: debian/sysv-rc/etc/init.d/rc
===================================================================
--- debian/sysv-rc/etc/init.d/rc (revision 833)
+++ debian/sysv-rc/etc/init.d/rc (working copy)
@@ -246,7 +246,7 @@
fi
CURLEVEL=$level
SCRIPTS=""
- for i in /etc/rc$runlevel.d/K$level*
+ for i in /etc/rc$previous.d/K$level*
do
# Check if the script is there.
[ ! -f $i ] && continue
More information about the Pkg-sysvinit-devel
mailing list