- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Reboot from crontab will not complete
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
09-15-2003 01:26 PM
09-15-2003 01:26 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2003 01:28 PM
09-15-2003 01:28 PM
SolutionThis has always worked for me:
01 12 * * * /usr/sbin/shutdown -ry 0
Also what does setboot look like:
root> setboot
Primary bootpath : 2/0/1.6.0
Alternate bootpath : 2/0/1.0.0
Autoboot is ON (enabled)
Autosearch is ON (enabled)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2003 01:45 PM
09-15-2003 01:45 PM
Re: Reboot from crontab will not complete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2003 01:49 PM
09-15-2003 01:49 PM
Re: Reboot from crontab will not complete
I sometimes run my production systems for MONTHS between reboots. That's because I have the applications properly configured along with the OS. The most frequent cause of reboots are security patches.
If you have to boot once a day, something is wrong. Even weekly is too much.
I'm somewhat happy its hard reboot from crontab. Thats a process that really requires a human to be involved and thinking about it.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2003 02:31 PM
09-15-2003 02:31 PM
Re: Reboot from crontab will not complete
Crontab line:
01 00 * * 0-6 /etc/shutdown -r -y 0
Primary bootpath : 10/0/15/0.6.0
Alternate bootpath :10/0/15/0.5.0
Autoboot is ON (enabled)
Autosearch is ON (enabled)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2003 04:35 PM
09-15-2003 04:35 PM
Re: Reboot from crontab will not complete
cd / ; /etc/shutdown -ry 0
and see if that helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2003 04:47 PM
09-15-2003 04:47 PM
Re: Reboot from crontab will not complete
Is because shutdown will fail if its run from a mounted directory.
cd /stand
shutdown -ry now
It won't shutdown and will advise you to cd / prior to running the command.
If we've helpled, please point us. :-)
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2003 06:07 AM
09-17-2003 06:07 AM
Re: Reboot from crontab will not complete
ex. menu:
b) Boot from specified device
s) Search for bootable devices
a) Enter Boot Administration mode
x) Exit and continue boot sequence
?) Help
Select from menu:
Then once I select the device. (i.e. b p0) the system will boot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2003 06:28 AM
09-17-2003 06:28 AM
Re: Reboot from crontab will not complete
setboot -s off
Then run setboot again to make sure it took:
#setboot
Primary bootpath : 52.6.0
Alternate bootpath : 52.3.0
Autoboot is ON (enabled)
Autosearch is OFF (disabled)
Let us know what happens. And sorry about my typo in the first response I should have had the crontab entry like yours for a midnight reboot not mine which was a noon reboot.
01 00 * * 1-6 .......
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2003 06:31 AM
09-17-2003 06:31 AM
Re: Reboot from crontab will not complete
Sounds like you don't have the system set to autoboot - run
setboot
and note the value for AutoBoot. If it's OFF then run
setboot -b on
and check it again.
You should also check the value for Primary bootpath & verify that it is indeed the HW path for the boot disk.
HTH,
Jeff
P.S. I agree with the others - this ain't no MicroBlows box. I'd question the vendor as to *exactly* why they feel it has to be rebooted nightly.