Operating System - HP-UX
1833599 Members
4053 Online
110061 Solutions
New Discussion

system is in single user mode ?

 
shashikala
New Member

system is in single user mode ?

Hi ,

Is there any method or any environment variable which says system is in single user mode or on multi user mode. how to capture this data while system booting and after boot.


Thanks for your help,
Shashi





4 REPLIES 4
Tim Nelson
Honored Contributor

Re: system is in single user mode ?

Not really sure what you are after.

who -r ?? returns current and last run levels

/etc/rc.log ?? contains boot log

dmesg ?? contains messages from system prior to syslogd startup

/var/adm/syslog/syslog.log boot messages transfered from dmesg during boot then subsequent messages logged via syslogd.


video recorder pointed at console ?

James R. Ferguson
Acclaimed Contributor

Re: system is in single user mode ?

Hi Shashi:

# who -r

...reports the run-level.

As for your second question, I'm not clear what you are asking. You can examine the '/etc/rc.log' to see the startup events for the various run-levels during startup.

Regards!

...JRF...
Jaime Bolanos Rojas.
Honored Contributor

Re: system is in single user mode ?

Shashikala,

To figure out the run level, you could always use this command:

# who -r

Also for information on the run levels on a system you can always read the init man page:

http://docs.hp.com/en/B2355-60105/init.1M.html

Regards,

Jaime.
Work hard when the need comes out.
Torsten.
Acclaimed Contributor

Re: system is in single user mode ?

I'm sure you will know if you are in single user mode!

See this

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1238202

...

INIT: Overriding default level with level 's'

INIT: SINGLE USER MODE

INIT: Running /sbin/sh
# set
...
INIT_STATE=s <===
...

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!