1837981 Members
1769 Online
110124 Solutions
New Discussion

Init Run Level

 

Init Run Level

Can anybody tell me in which file the current run level in defined. Inittab might not be the correct answer !!!
3 REPLIES 3
Torsten.
Acclaimed Contributor

Re: Init Run Level

/etc/inittab has the *default* run-level.

Run

who -r

to get the current.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Pete Randall
Outstanding Contributor

Re: Init Run Level

The *current* run level?? Since you use the "who" command to query it, I would guess that it might be stored in /etc/utmp.


Pete

Pete
Torsten.
Acclaimed Contributor

Re: Init Run Level

Pete, this was a good hint.

strings /etc/utmp|grep run

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!