I am struggling with this bug as well, but I am trying to shutdown
Proxmox server and it is built on Debian.

#cat /etc/*-release
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian

This is a temporary fix - I created a doshutdown script, and I actually
call the apcupsd --killpower function before I call the halt command
like so:


#cat /etc/apcupsd/doshutdown


#!/bin/bash

# Send killpower command to UPS and halt the system instead of shutdown
completely.

# Issue kill power command (make sure ups eprom 'Sleep delay' is long
enough to allow for halt to # happen before the power is cut)

/sbin/apcupsd --killpower

# Do halt
/sbin/shutdown -H now


# Tell controlling script (/etc/apcupsd/apccontrol) NOT to continue with 
default action (i.e. shutdown).

exit 99

-- 
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