Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A way to temporarily disable rc.powerfail from /etc/inittab

Status
Not open for further replies.

jrothey

Technical User
Jul 1, 2005
19
US
We have been having a few problems with one of our APC UPSs and we're in the midst of migrating to a new one. The problem is that when we pull the UPS offline a message gets walled to all our users. Is there a way to just temporarily disable this feature until we get the system back up and stable on another UPS?
 
What does the UPS line(s?) in /etc/inittab look like?

off hand:
Comment out the line - put a colon in front of it -
or set the 3rd keyword to "off".
Save the file, then run "telinit q" to force the init process to re-read the inittab file

HTH,

p5wizard
 
This is what the line reads in inittab:

powerfail::powerfail:/etc/rc.powerfail 2>&1 | alog -tboot > /dev/console # Power Failure Detection

So put a # in front of the line and run "telinit q"?
 
no - inittab comment char is a colon ':'

comment out:

:powerfail::powerfail:/etc/rc.powerfail 2>&1 | alog -tboot > /dev/console # Power Failure Detection

or modify to off:

powerfail::eek:ff:/etc/rc.powerfail 2>&1 | alog -tboot > /dev/console # Power Failure Detection


HTH,

p5wizard
 
Or you can put an "exit 0" as the first line in the script /etc/rc.powerfail, that way you don't have to modify inittab and don't have to "telinit q".


HTH,

p5wizard
 
Thanks for the help and input, this worked and will allow me to do the testing that we need.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top