Operating System - HP-UX
1833818 Members
2459 Online
110063 Solutions
New Discussion

Re: Which runlevel to start named?

 
SOLVED
Go to solution
echong
Regular Advisor

Which runlevel to start named?

Just setup a cache-only named and want to setup the startup script. What runlevel should it be and what sequence number? Since some of the processes will depend on name resolution, so I think there must be some limitation on starting the daemon.
Thanks
4 REPLIES 4
Victor Fridyev
Honored Contributor
Solution

Re: Which runlevel to start named?

The level is 2
The script is
S370named@ -> /sbin/init.d/named

HTH
Entities are not to be multiplied beyond necessity - RTFM
Patrick Wallek
Honored Contributor

Re: Which runlevel to start named?

On one of my machine it starts in run level 2 and stops in run level1.

/sbin/rc1.d/K630named
/sbin/rc2.d/S370named
A. Clay Stephenson
Acclaimed Contributor

Re: Which runlevel to start named?

Run-level 2 is the most typical but after the core net processes have started. The default S370named link in /sbin/rc2.d works well unless you have "improved" the order of the rc scripts.
If it ain't broke, I can fix that.
Biswajit Tripathy
Honored Contributor

Re: Which runlevel to start named?

As others have already said, sequence number is
370 in run level 2. Note that the networking and
interfaces are configured at seq number 340 in
run level 2. So if you are planning to use your own
startup script instead of modifying S370named,
you might want to pick up a seq number greater
than 340. On my 11.11 machine here, I see that
next script after S370 is S400nfs which might use
name resolution. Check your machine if there are
any other scripts before S400 that might use
named (like S356dhcpv6.server).

Word of caution. If you are picking an unused
sequence number then, you should know that
some patches or products (not installed on
your system) might already be using this number
and if you install one such patch/product that
might overwrite your script.

- Biswajit
:-)