aboutsummaryrefslogtreecommitdiffstats
path: root/clfs
diff options
context:
space:
mode:
Diffstat (limited to 'clfs')
-rw-r--r--clfs/tmpfiles/apcupsd.conf3
-rw-r--r--clfs/units/apcupsd.service8
2 files changed, 11 insertions, 0 deletions
diff --git a/clfs/tmpfiles/apcupsd.conf b/clfs/tmpfiles/apcupsd.conf
new file mode 100644
index 0000000..601b5ae
--- /dev/null
+++ b/clfs/tmpfiles/apcupsd.conf
@@ -0,0 +1,3 @@
+D /run/apcupsd 0755 root root
+r /etc/apcupsd/powerfail
+r /etc/nologin
diff --git a/clfs/units/apcupsd.service b/clfs/units/apcupsd.service
new file mode 100644
index 0000000..9cec6e4
--- /dev/null
+++ b/clfs/units/apcupsd.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=APC UPS Monitor
+
+[Service]
+ExecStart=/sbin/apcupsd -b
+
+[Install]
+WantedBy=multi-user.target