1820123 Members
3123 Online
109619 Solutions
New Discussion юеВ

run level init 6

 
Prashant S. Kelaskar
Occasional Advisor

run level init 6

Hi
Can anyone explain about init 6
or which is the best site to collect the information about init 6

Thanks

Prashant
7 REPLIES 7
Anshumali
Esteemed Contributor

Re: run level init 6

The run-level 5-6 states are available for user-defined operations.
Never used run level 6 or saw it running in production environment. Yet to see...

Do a man init
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
Prashant S. Kelaskar
Occasional Advisor

Re: run level init 6

I done man init & found
0-6 init enters the corresponding run level. Run levels 0, 5, and 6 are reserved states for shutting the system down. Run levels 2, 3, and 4 are available as multi-user operating states.
Prashant S. Kelaskar
Occasional Advisor

Re: run level init 6

man init show below info in HP-UX
5-6 These states are available for user-defined operations.
--------------------------------------------
Found below for Sun Solaris SunOS 5.8
Maintenance Commands init(1M)

0-6 init enters the corresponding run level. Run levels 0, 5, and 6 are reserved states for shut-ting the system down.

Run levels 2, 3, and 4 are available as multi-user operating states.



Which the best site or more info other than ?


Jollyjet
Valued Contributor

Re: run level init 6

RUNLEVELS
Run levels 0, 1 and 6 are reserved. Runlevel 0 is used to
halt the system, runlevel 6 is used to reboot the system
and runlevel 1 is used to get the system down into single
user mode. Runlevel S is not really ment to use directly,
but more for the scripts that are executed when entering
runlevel 1.For more information on this, see the manpages
for shutdown(1) and inittab(5).

Runlevels 7-9 are also valid, though not really docu-
mented. This is because "traditional" Unix variants don't
use them. In case you wonder, runlevels S and s are in
fact the same. Internally they are aliases for the same
runlevel - this is just a leftover from the systems the
author used to use when writing sysvinit.

Rasheed Tamton
Honored Contributor

Re: run level init 6

Hi Prashant,

Init commands widely used on Solaris env. HP does not recommend to use the init. The recommended is to use shutdown with different options as per your situation.

If you go to sbin dir and look for the dirs you can understand the difference. The system startup (S??) and shutdown (K??) (and runtime) scripts are bit different than Linux and Solaris.

# pwd
/sbin
# ls -ld rc?.*
dr-xr-xr-x 2 bin bin 96 May 18 1998 rc0.d
dr-xr-xr-x 2 bin bin 2048 Jan 5 1999 rc1.d
dr-xr-xr-x 2 bin bin 2048 May 18 2002 rc2.d
dr-xr-xr-x 2 bin bin 96 Nov 23 1998 rc3.d
dr-xr-xr-x 2 bin bin 96 Jun 10 1996 rc4.d
# cd rc4.d
# ll
total 0
#

Regards,
Rasheed Tamton.
Ralph Grothe
Honored Contributor

Re: run level init 6

# init 6

is common (shorthand) idiom on Solaris and Linux to reboot the machine (with init scripts being executed on those OS).
However, on HP-UX it isn't recommended.

# shutdown -g0 -i6 -y (Solaris)
or
# shutdown -r now (Linux)

are much too long ;-)

Madness, thy name is system administration
Indrajit_1
Valued Contributor

Re: run level init 6

Hi;

Runlevel 6 is use for reboot a machine. it is equivalent to ..

#shutdown -yr 0 (HP Unix)

But, in HP Unix, there is no runlevel 6.

Cheers;
Indrajit Roy
Never Ever Give Up