sysvinit-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sysvinit-devel] Could not determine runlevel


From: Jesse Smith
Subject: Re: [sysvinit-devel] Could not determine runlevel
Date: Wed, 13 Jun 2018 17:29:48 -0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

On 06/13/2018 05:01 PM, Matias Fonzo wrote:
> According to init(8):
>
> [..]
>
> ENVIRONMENT
> Init sets the following environment variables for all its children:
>
> RUNLEVEL
>        The current system runlevel.
> [..]
>
> Probably there is no need to write/read such file...
>

While that is true, in this case reboot/halt would not be a direct child
of init. If you have a shell open and run "echo $RUNLEVEL" you will
probably find the variable is not set, unless your shell is a direct
descendant of init. That is why I think having the value stored in a
specific, non-volatile location.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]