/lib/systemd/system-shutdown/apcupsd_shutdown is in apcupsd 3.14.14-0.3.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 | #!/bin/sh
# apcupsd: kill power via UPS (if powerfail situation)
# (Originally from Fedora.)
# See if this is a powerfail situation.
if [ -f /etc/apcupsd/powerfail ]; then
echo
echo "APCUPSD will now power off the UPS"
echo
/etc/apcupsd/apccontrol killpower
fi
|