1837673 Members
3154 Online
110117 Solutions
New Discussion

Reboot after patching

 
SOLVED
Go to solution
wip
Frequent Advisor

Reboot after patching

Guys,

I have question.

Is there any way where in which we can change reboot after installing patches to a normal shutdown.What I mean is after installing kernel patches thru swinstall,the machine gets rebooted instead of gracefull shutdown.I want the shutdown to work for me.

Any grand idea would be greatly appreciated.

thanks

A keen HP guy
1 REPLY 1
Sanjay Kumar Suri
Honored Contributor
Solution

Re: Reboot after patching

man swinstall

After software that requires a system reboot is installed or updated, swinstall automatically reboots the system. The reboot command is defined by the swagent option: reboot_cmd.


http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90154/B2355-90154_top.html&con=/hpux/onlinedocs/B2355-90154/00/00/67-con.html&toc=/hpux/onlinedocs/B2355-90154/00/00/67-toc.html&searchterms=reboot_cmd&queryid=20040627-002506

SD-UX command behaviors and policy options may be changed by modifying default values found in /usr/lib/sw/sys.defaults and storing them in the system level (/var/adm/sw/defaults) or user level ($HOME/.sw/defaults) defaults files. Values in these defaults are specified using this syntax:
command.option=value

For example, to change the use_alternate_source default from "false" to "true" for an installation, edit the defaults file to include this line:

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90154/B2355-90154_top.html&con=/hpux/onlinedocs/B2355-90154/00/00/67-con.html&toc=/hpux/onlinedocs/B2355-90154/00/00/67-toc.html&searchterms=reboot_cmd&queryid=20040627-002506

reboot_cmd=/sbin/reboot

This is the command called by the agent to reboot the system.

Applies to swagent.


sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.