Operating System - HP-UX
1833187 Members
2587 Online
110051 Solutions
New Discussion

Re: Which is more efficient in taking down network?

 
SOLVED
Go to solution
frederick hannah
Super Advisor

Which is more efficient in taking down network?

Which process is more efficient (easier to restart) in shutting-down the netvork on an HPUX 11.11 server? Doing an "init 2" or a
"netstart stop"?
6 REPLIES 6
Michael Steele_2
Honored Contributor
Solution

Re: Which is more efficient in taking down network?

HI

always use the sbin command and init 2 will refer to the sbin command. So you either have a run level 3 system with no network or a run level 2 system. I'd init 2.
Support Fatherhood - Stop Family Law
frederick hannah
Super Advisor

Re: Which is more efficient in taking down network?

Init 2 sounds good as I want to be sure network processes arent running, but I dont want to do a full reboot either. From the command prompt, do a "init 2" and the network will shutdown?
Pete Randall
Outstanding Contributor

Re: Which is more efficient in taking down network?

From the man page for init, it looks like init 2 is not going to be enough:

2 Start most system daemons and login processes. This state is often called the "multi-user state". Login processes either at local terminals or over the network are possible.

I would suggest init 1, then you can use init 4 to bring the system back up.


Pete

Pete
frederick hannah
Super Advisor

Re: Which is more efficient in taking down network?

Thanks. I dont why I was stuck on init 2. Thanks to both of you guys.
frederick hannah
Super Advisor

Re: Which is more efficient in taking down network?

Init 1 is the level of choice.
Rick Garland
Honored Contributor

Re: Which is more efficient in taking down network?

I use the "init 2" and I watch the /etc/rc.log file (tail -f /etc/rc.log) so I know when it has completed it transition.

This should bring down all apps and just leave networking, assuming your apps are only configured for run levels 345.