Operating System - HP-UX
1825662 Members
3429 Online
109686 Solutions
New Discussion

Re: Halt system directly after swinstall autoreboot

 
SOLVED
Go to solution
farid S
Frequent Advisor

Halt system directly after swinstall autoreboot

Hi,
I have to install some patches that need reboot, and after that reboot, we will do somw hardware maintenance. This action will be taken during an outage for several servers at once. So is there a way, to force the system to do a halt shutdown and not a reboot after the swinstall. something like -x autoreboot=true for swinstall ...?
(I'm trying to script all of this outage actions).
Many Thanks,
Farid.
5 REPLIES 5
Peter Godron
Honored Contributor

Re: Halt system directly after swinstall autoreboot

Farid,
the closest I can think of right now would be via : /usr/sbin/setboot

See man setboot

set autoboot to OFF and the machine should not automatically reboot, but goto startup menu.

Never had to change, as I always auto-reboot and then shut down.
Peter Godron
Honored Contributor

Re: Halt system directly after swinstall autoreboot

Farid,
could you please complete the thread by awarding points to helpful answers and summarising the solution for you.
This will help resolution of similar problems in the future.
OldSchool
Honored Contributor

Re: Halt system directly after swinstall autoreboot

I would let them reboot and then do a clean shutdown for the hardware maint.

Imagine a scenario where you have patched, halted, and done hardware maintainence. Attempts to start one or more servers fail. Where do you start? Did the patches cause issues, or the hardware maint?

But, that's just my opinion......
Denver Osborn
Honored Contributor
Solution

Re: Halt system directly after swinstall autoreboot

you can do this with the /var/adm/sw/defaults file. Append

swagent.reboot_cmd = "/sbin/reboot -h"

The default is /sbin/reboot.

hope this helps,
-denver
farid S
Frequent Advisor

Re: Halt system directly after swinstall autoreboot

Thanks!