I got around this by creating (and of course doing chmod +x on) a script
at /lib/systemd/system-shutdown/apcups-killpower

#!/bin/sh
if [ "$1" = "poweroff" -a -f /etc/apcupsd/powerfail ]; then
    /etc/apcupsd/apccontrol killpower
fi

Idea from 
https://wiki.archlinux.org/index.php/APC_UPS#Make_apcupsd_kill_UPS_power_once_the_hibernate_is_done
(with credit to djgera 
https://bbs.archlinux.org/viewtopic.php?pid=1354737#p1354737 and fsateler 
https://github.com/systemd/systemd/issues/4894#issuecomment-267372354)

** Bug watch added: github.com/systemd/systemd/issues #4894
   https://github.com/systemd/systemd/issues/4894

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1634572

Title:
  APCUPSD does not send killpower command to UPS (only happens on Ubuntu
  16.04)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apcupsd/+bug/1634572/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to