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: Matias Fonzo
Subject: Re: [sysvinit-devel] Could not determine runlevel
Date: Wed, 13 Jun 2018 17:59:19 -0300

On Wed, 13 Jun 2018 17:29:48 -0300
Jesse Smith <address@hidden> wrote:

> 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.
> 
> 

I'm curious, why shutdown need to determine the runlevel?.







reply via email to

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