[Pkg-sysvinit-devel] Bug#542811: Bug#542811: invoke-rc.d starts disabled startup scripts

Petter Reinholdtsen pere at hungry.com
Thu Aug 27 14:17:57 UTC 2009


[Harald Dunkel]
> Whats about all the services in /etc/init.d defining a "S" or "K"
> link for just a subset of all run levels? Are these packages broken?

I suspect it depends, but packages failing to define if the service
should be enabled or disabled in runlevel 1-5 are most likely broken.
Most (all?) packages should stop in runlevel 1 and start in runlevels
2,3,4 and 5.  Note that rcS.d/ is not really a runlevel, and script
only executed there are very special.  The only ones I know about that
start daemons from rcS.d/ is portmap, and it also stop in runlevel 1
and start in runlevels 2-5 and sto make the daemon start again if it
was stopped in runlevel 1.

Runlevels 0 and 6 are also spesial, in that no-one should be using
invoke-rc.d during shutdown, and thus lacking stop symlinks there do
not represent a problem as far as I know it.

Happy hacking,
-- 
Petter Reinholdtsen





More information about the Pkg-sysvinit-devel mailing list