[Pkg-sysvinit-devel] Bug#142424: Please implement a kindler gentler single-user runlevel
Petter Reinholdtsen
pere at hungry.com
Sun Jul 26 14:54:39 UTC 2009
An idea occured to me the other day, to make sure single user boots
actually execute the rc1.d/ scripts. We could add code like this in a
script at the end of rcS.d/:
for word in $(cat /proc/cmdline); do
case "$word" in
S|single)
telinit 1
;;
esac
done
This way a single user boot would first stop scripts according to
rc1.d/, and next start sulogin. This way the last runlevel was 1, and
exiting single user would send people to runlevel 2 which would start
everything that was stopped in runlevel 1.
This again would allow us to get a system that recover properly after
single user, restarting services that was stopped. We would need to
add/move some start scripts from rcS.d/ to rc#.d/, but that make sense
anyway.
Happy hacking,
--
Petter Reinholdtsen
More information about the Pkg-sysvinit-devel
mailing list