Operating System - HP-UX
1819763 Members
3193 Online
109606 Solutions
New Discussion юеВ

gracful shutdown HP-UX 11i server

 
Asif_8
Regular Advisor

gracful shutdown HP-UX 11i server

what is a graceful method to shutdown HP-UX 9000 server(rp5405) on HP-UX 11i
8 REPLIES 8
Pete Randall
Outstanding Contributor

Re: gracful shutdown HP-UX 11i server

Use "shutdown -h -y 0". This will cycle through all the shutdown scripts, allowing all services to be stopped normally before the machine itself is halted.


Pete

Pete
Geoff Wild
Honored Contributor

Re: gracful shutdown HP-UX 11i server

reboot: shutdown -r
halt: shutdown -h

man shutdown for more info.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
RAC_1
Honored Contributor

Re: gracful shutdown HP-UX 11i server

shutdown -hy 0

Anil
There is no substitute to HARDWORK
Steven E. Protter
Exalted Contributor

Re: gracful shutdown HP-UX 11i server

shutdown

-ry 0 to reboot

-hy 0 to stop the server

shutdown -ry 0
shutdown -hy 0

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Nicolas Dumeige
Esteemed Contributor

Re: gracful shutdown HP-UX 11i server

Hello,

shutdown -h -y -g 0 now

Cheers

Nicolas
All different, all Unix
Petr Simik_1
Valued Contributor

Re: gracful shutdown HP-UX 11i server

shutdown as mentioned is safe way.
somebody noticed me that reboot can be performed too, but sync command is to be placed in before. It will look like:
#sync; sync; reboot;
Bharat Katkar
Honored Contributor

Re: gracful shutdown HP-UX 11i server

Hi,
1. Use "wall" command to send messages to all logged in users about server going down.
2. Confirm using who command whether all users are logged out
3. Use "ps -ef | more" command to check whether any critical/important processes are still running
4. Confirm there are no activities going on the attached I/O devices.
5. Then finally # shutdown -y -h 0

Regards,

You need to know a lot to actually know how little you know
john kingsley
Honored Contributor

Re: gracful shutdown HP-UX 11i server

Reboot is not the recommended way to shutdown a system. Reboot will sync the disks prior to shutting down the system, but it will not stop the services gracefully (it doesn't run the /sbin/rc*.d/K* kill scripts).

To gracefully shutdown an hp-ux system, always run:
shutdown -y -r[or h] [grace]
Where: y confirms the action
r reboots the system
h halts the system
grace is the number of seconds before beginning the shutdown to allow users to logout.