db0a920335
we have BASESYSCONFDIR. Maintainer timeout.
14 lines
406 B
Plaintext
14 lines
406 B
Plaintext
To allow the system to be fully powered down (in order to preserve
|
|
UPS battery), add the following lines to /etc/rc.shutdown:
|
|
|
|
if [ -f ${SYSCONFDIR}/powerfail ]; then
|
|
echo
|
|
echo "APCUPSD requested this system is powered down."
|
|
echo
|
|
powerdown=YES
|
|
echo
|
|
echo "Please ensure that the UPS has powered off before rebooting"
|
|
echo "Otherwise, the UPS may cut the power during the reboot!!!"
|
|
echo
|
|
fi
|