Hi @thomas

Install APCUPSD as you normally would and then...
You need to create a custom script with +x (make executable)
with these contents: 

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

After that, save the script into this path /lib/systemd/system-shutdown/

Then try it again and let me know! it works.

-- 
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
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to