[Pkg-sysvinit-devel] Re: Bug#220025: Will fix
Thomas Hood
jdthood at yahoo.co.uk
Mon Dec 12 10:39:07 UTC 2005
Greg Wooledge:
> There are other "aliases" for single, such as "1". Some people might
> come up in single user mode using one of those alternative boot parameters.
> I don't know whether there's an exhaustive list of all of them anywhere,
> either.
>
> I suggest using the runlevel(8) command instead, assuming that it returns
> reliable information. The man page says it's safe to use in rc scripts, but
> I haven't tried it myself.
At the end of the initscript sequence for runlevel S we need to know whether
or not we are going to switch to a multi-user runlevel (2 through 5). (If we
are not going to switch to a multi-user runlevel then we must stop bootlogd;
otherwise we leave bootlogd running and it will be stopped at the end of the
initscript sequence for the multi-user runlevel.) How can this information
be obtained from runlevel(8)?
--
Thomas
More information about the Pkg-sysvinit-devel
mailing list