[Pkg-sysvinit-devel] Bug#483172: sysv-rc: does not run all shutdown scripts

Petter Reinholdtsen pere at hungry.com
Thu May 29 10:39:09 UTC 2008


Actually, sysv-rc is behaving as intended, designed and documented.
When switching from one runlevel to another, only new start scripts
are executed.  So, if portmap want to stop in runlevel 0 and 6 while
starting in runlevels 2-5, it should install a K* symlink, not S*
symlinks.  On the other hand, the runlevels 0 and 6 are very special,
as S* symlinks are handled as if they wyere K* symlinks.  This is an
argument for handling the optimizing specially as well.

I believe the proper fix for this is to convert all S* style symlinks
in rc0.d/ and rc6.d/ to K* style symlinks, but it will require a lot
of painful coordination using the current framework.  Switching to
dependency based boot sequencing using insserv will solve this problem
automatically.

Anyway, I'll see what can be done in init.d/rc to work around this
issue.

Happy hacking,
-- 
Petter Reinholdtsen





More information about the Pkg-sysvinit-devel mailing list