openbsd-ports/sysutils/apcupsd/pkg/MESSAGE-main
2011-11-28 10:46:19 +00:00

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