HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- rebooting and swinstall
Operating System - HP-UX
1838120
Members
4311
Online
110124
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2001 05:06 AM
04-26-2001 05:06 AM
rebooting and swinstall
Hello Everyone!
I need some clarification on using the /var/adm/sw/defaults file to change the swinstall reboot command to shutdown. I need swinstall to perform a shutdown instead of going directly to reboot. The documentation is unclear on how this is specified.
First: Can I put spaces around the equal sign, for example: swagent.reboot_cmd = /sbin/shutdown
Second: Do I need to specify the shutdown options to perform a reboot, for example: swagent.reboot_cmd = /sbin/shutdown -ry 0
Do I need to put quotes around the command?
I am hoping that someone out there has used this option
of swinstall and can tell me how it is specified.
Thanks in advance,
JLS
I need some clarification on using the /var/adm/sw/defaults file to change the swinstall reboot command to shutdown. I need swinstall to perform a shutdown instead of going directly to reboot. The documentation is unclear on how this is specified.
First: Can I put spaces around the equal sign, for example: swagent.reboot_cmd = /sbin/shutdown
Second: Do I need to specify the shutdown options to perform a reboot, for example: swagent.reboot_cmd = /sbin/shutdown -ry 0
Do I need to put quotes around the command?
I am hoping that someone out there has used this option
of swinstall and can tell me how it is specified.
Thanks in advance,
JLS
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2001 05:55 AM
04-26-2001 05:55 AM
Re: rebooting and swinstall
You don't need to put quotes for the command to be parsed and read. Check also /usr/lib/sw/sys.defaults and search for reboot.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2001 07:55 AM
04-26-2001 07:55 AM
Re: rebooting and swinstall
Thanks, Chris
I did check the sys.defaults, but it does not show anything with arguments. I have solved the problem, but
not like I was hoping to. For anyone who cares, this is
what I think was happening:
First, it looks like no spaces around equal sign.
Second, shutdown must run under the root filesystem.
So, I wrote a script that switches to the root filesystem and then issues shutdown -ry 0. Everything now works fine.
I did check the sys.defaults, but it does not show anything with arguments. I have solved the problem, but
not like I was hoping to. For anyone who cares, this is
what I think was happening:
First, it looks like no spaces around equal sign.
Second, shutdown must run under the root filesystem.
So, I wrote a script that switches to the root filesystem and then issues shutdown -ry 0. Everything now works fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2001 07:56 AM
04-26-2001 07:56 AM
Re: rebooting and swinstall
There is a problem that you cannot simply modify the "reboot" command to a "shutdown" command. I believe the problem was that the shutdown command kills itself.
This way it should work:
Create a shutdown script and modify the defaults file to use the script. Then stop and restart swagentd.
For example,
1. Create the following script called /tmp/myshut:
#!/sbin/sh
/sbin/shutdown -ry 0
2. Modify the defaults file to use script:
swagent.reboot_cmd = /tmp/myshut
3. swagentd -r
Carsten
This way it should work:
Create a shutdown script and modify the defaults file to use the script. Then stop and restart swagentd.
For example,
1. Create the following script called /tmp/myshut:
#!/sbin/sh
/sbin/shutdown -ry 0
2. Modify the defaults file to use script:
swagent.reboot_cmd = /tmp/myshut
3. swagentd -r
Carsten
-------------------------------------------------------------------------------------------------
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP