1855663 Members
8557 Online
104113 Solutions
New Discussion

Define a new run level

 
SOLVED
Go to solution

Define a new run level

Hello All,

Please let me know how to define a new run level in HPUX ?

Thanks
Salman
5 REPLIES 5
rariasn
Honored Contributor

Re: Define a new run level

Hi Roshan,

$ man init

rgs
rariasn
Honored Contributor

Re: Define a new run level

... and

$ man rc

rgs

Re: Define a new run level

Thanks
i want to create a new run level named "z"
how shall i proceed ?
Thanks
Yogeeraj_1
Honored Contributor

Re: Define a new run level

hi,

In HP-UX, the different runlevels have been classified as follows:

* 0 - system halted
* S - single-user, booted to system console only, with only root filesystem mounted (as read-only)
* s - single user, identical to S except the current terminal acts as the system console
* 1 - single-user with local filesystems mounted (read-write)
* 2 - multi-user with most daemons started and Common Desktop Environment launched
* 3 - multi-user, nearly identical to runlevel 2 with NFS exported
* 4 - multi-user with VUE started instead of CDE
* 5 - user-defined
* 6 - user-defined

I don't know if you can define a custom runlevel.

You may wish to use runlevel 5 or 6.

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
rariasn
Honored Contributor
Solution

Re: Define a new run level

Hi,

telinit
telinit, which is linked to /etc/init, is used to direct the actions
of init. It takes a one-character argument and signals init via the
kill system call to perform the appropriate action. The following
arguments serve as directives to init:

0-6 tells init to place the system in one of the run levels
0 through 6.

a, b, c tells init to process only those /etc/inittab file
entries having run level a, b, or c set.

Q or q tells init to re-examine the /etc/inittab file.

S or s tells init to enter the single user environment. When
this level change is effected, logical system console
/dev/syscon is changed to the terminal from which the
command was executed.

telinit can be invoked only by users with appropriate privileges.


rgs