Operating System - HP-UX
1833167 Members
3388 Online
110051 Solutions
New Discussion

Re: killall and restarting devices & services

 
SOLVED
Go to solution
Edgar Arroyo
Regular Advisor

killall and restarting devices & services

HP-UX 11i, HP Visualize C3000

How would be the easiest way to do a killall (of course from / "root") and restart the devices and services as if it was a restart but without the loooong wait of the graphics card and boot device?
5 REPLIES 5
Edgar Arroyo
Regular Advisor

Re: killall and restarting devices & services

When I say "killall" it is not only the command killall, it's killing *ALL* processes... (shutdown maybe?)
David Child_1
Honored Contributor

Re: killall and restarting devices & services

Well, if you truely want to kill *ALL* processes then I don't see how you will get around the boot time. You could possibly bring it down into run level 1 and then back up. It won't kill all the processes, but it will run all the shutdown scripts down to rc1.d.
Sridhar Bhaskarla
Honored Contributor

Re: killall and restarting devices & services

Hi,

Simple 'shutdown' will bring the system to single user mode by *effectively* killing all the processes except processes needed to run in the single user mode. Once you are in single user mode type 'init 3' to go back to multi-user mode.

A workstation doesn't take long to boot though. I prefer rebooting the system if it is required to restart all the processes.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Sanjay Kumar Suri
Honored Contributor

Re: killall and restarting devices & services

How about

#shutdown -ry 0

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Bharat Katkar
Honored Contributor
Solution

Re: killall and restarting devices & services

Hi Edgar,
Killing processes, restarting device, and restarting services are all different things. Now if you want to restart all services then i would say the best way to do it:

1. Ask all yours to logout
2. Close all telnet sessions
3. From console
# init 1
4. This will take you to run level 1
5. # init 3
Restart your system in normal Run level 3.

For restarting Devices you need to shutdown the system and power cycle the server.


Hope this is what you are looking for.
Regards,
You need to know a lot to actually know how little you know