- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /sbin/powerfail
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
Forums
Discussions
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
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
12-12-2001 02:42 PM
12-12-2001 02:42 PM
Found a commented entry in /etc/inittab and am wondering what this is used for? I can find zero documentation on it.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 02:55 PM
12-12-2001 02:55 PM
Solutionthis is to be executed AFTER the power has been re-established after a power-failure and was only useful back in those days when we had a battery backed-up RAM (which kept the contents up to 4 hours only, IIRC). If within that time frame power was re-established, that script was used to save everything to disk and (usually) reboot...
HTH,
Wodisch
BTW: it is a script - you can read it ;-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 02:58 PM
12-12-2001 02:58 PM
Re: /sbin/powerfail
Useful if you what to run a script following a powerfail, I guess...
Also see /etc/powerfail.cfg
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 03:46 PM
12-12-2001 03:46 PM
Re: /sbin/powerfail
THe documentation is
cat /sbin/powerfail ;)
**
#!/sbin/sh
# @(#) $Revision: 72.2 $
#
# NOTE: This script is not configurable! Any changes made to this
# script will be overwritten when you upgrade to the next
# release of HP-UX.
#
# This script is run when the powerfail entry is executed from /etc/inittab.
# Powerfail handling is controlled by three scripts:
# /sbin/powerfail HP-supplied execution script, not to be modified
# /etc/powerfail.cfg user-modifiable configuration values
# /etc/local/powerfail user-modifiable execution script
....
***
I think this goes along with UPS battery backup of the system , such that when the power fails and system switches over to ups, the init's powerfail entry runs this script which runs userdefined scripts (shutdown oracle, applications ?) and sends wall to the users before shutting down. All geared to clean shutdown.
HTH
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2001 05:39 AM
12-13-2001 05:39 AM
Re: /sbin/powerfail
UPS are conneted via asyncrous port to computer box. When power fail, UPS turn on and raise a signal for this condition.
Powerfail can manage this signal and wait up to x minutes to shutdown box if power dont return.
This is the reason it has a respawn condition on inittab, if not commented.