]> git.pld-linux.org Git - packages/apcupsd.git/blob - systemd.patch
- updated to 3.14.14, adjusted configure patch for current autotools
[packages/apcupsd.git] / systemd.patch
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
4 @@ -0,0 +1,11 @@
5 +[Unit]
6 +Description=APC UPS Power Control Daemon for Linux
7 +After=syslog.target
8 +After=network.target
9 +
10 +[Service]
11 +ExecStartPre=-/bin/rm -f /etc/apcupsd/powerfail
12 +ExecStart=/usr/sbin/apcupsd -b -f /etc/apcupsd/apcupsd.conf
13 +
14 +[Install]
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
19 @@ -0,0 +1,9 @@
20 +#!/bin/sh
21 +
22 +# See if this is a powerfail situation.
23 +if [ -f /etc/apcupsd/powerfail ]; then
24 +  echo
25 +  echo "APCUPSD will now power off the UPS"
26 +  echo
27 +  /etc/apcupsd/apccontrol killpower
28 +fi
This page took 0.045456 seconds and 3 git commands to generate.