1 diff -up apcupsd-3.14.8/apcupsd.service.systemd apcupsd-3.14.8/apcupsd.service
2 --- apcupsd-3.14.8/apcupsd.service.systemd 2011-06-16 10:33:02.335889489 +0200
3 +++ apcupsd-3.14.8/apcupsd.service 2011-06-16 09:59:02.616138047 +0200
6 +Description=APC UPS Power Control Daemon for Linux
11 +ExecStartPre=-/bin/rm -f /etc/apcupsd/powerfail
12 +ExecStart=/usr/sbin/apcupsd -b -f /etc/apcupsd/apcupsd.conf
15 +WantedBy=multi-user.target
16 diff -up apcupsd-3.14.8/apcupsd_shutdown.systemd apcupsd-3.14.8/apcupsd_shutdown
17 --- apcupsd-3.14.8/apcupsd_shutdown.systemd 2011-06-16 10:33:08.831934420 +0200
18 +++ apcupsd-3.14.8/apcupsd_shutdown 2011-06-16 10:10:20.948796784 +0200
22 +# See if this is a powerfail situation.
23 +if [ -f /etc/apcupsd/powerfail ]; then
25 + echo "APCUPSD will now power off the UPS"
27 + /etc/apcupsd/apccontrol killpower