]> git.pld-linux.org Git - packages/apcupsd.git/blame - systemd.patch
add fedora patches; including systemd support
[packages/apcupsd.git] / systemd.patch
CommitLineData
76fc6305
ER
1diff -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
16diff -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.049397 seconds and 4 git commands to generate.