APC UPS control system Power Supply User Manual


 
At this point, we recommend that you do a simulated power down of your
system. If you are adventuresome or have been through this before, skip
to the next section in this manual and do the real power fail shutdown. If
you continue with the simulated power down and if all goes well, apcupsd
will go through all the motions without actually shutting down the system.
Continue using the safe apccontrol that you installed. Edit the configuration
file apcupsd and change the value of TIMEOUT from 0 to something like
30. Doing so will cause apcupsd to attempt to shutdown the system 30
seconds after it detects a power failure. Once this change has been made,
you must stop and restart apcupsd for the new configuration value to take
effect.
Once again, pull the power plug, and if all goes as expected, apcupsd
should attempt to shutdown the system about 30 seconds after it detects
the power failure. All the messages should be displayed by wall or by the
tail -f command. The precise message is determined by what is printed
in /etc/apcupsd/apccontrol for the doshutdown event. Though it varies
from system to system, it will generally be something like:
Beginning Shutdown Sequence
When apcupsd this message prints, reconnect the power. apcupsd should
detect that the power has been restored and attempt to cancel the shutdown.
IMPORTANT after this test, please replace the changed apccontrol and
apcupsd.conf with the original files.
System Shutdown Test
This is an intermediate test that you can do, for all UPS models before
doing the Full Power Down Test. First modify the /etc/apcupsd/apccontrol
file so that in the killpower) case, the line that re-executes apcupsd with
the --killpower option is commented out. The original line probably looks
something like:
${APCUPSD} --killpower
when it is commented out, it looks like:
#${APCUPSD}--killpower
66