aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog10
-rw-r--r--Makefile5
-rw-r--r--README4
-rw-r--r--clfs/tmpfiles/apcupsd.conf3
-rw-r--r--clfs/units/apcupsd.service8
5 files changed, 28 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
new file mode 100644
index 0000000..0c6faff
--- /dev/null
+++ b/ChangeLog
@@ -0,0 +1,10 @@
+2014-04-07 William Harrington <kb0iic@cross-lfs.org>
+ * Add apcupsd service and tmpfile and install-apcupsd target
+
+2014-02-06 William Harrington <kb0iic@cross-lfs.org>
+ * Adjust for CLFS use and add editd fcron.service from fcron 3.1.2 package
+ to use /etc/default/fcron for runtime options with $FCRON_OPTS
+
+2013-06-10 Armin K. <krejzi@email.com>
+ * Import first revision of the standalone
+ units package.
diff --git a/Makefile b/Makefile
index 3c63df2..9b5c9f2 100644
--- a/Makefile
+++ b/Makefile
@@ -39,6 +39,11 @@ install-acpid: create-dirs
install -m ${CONFMODE} clfs/units/acpid.socket ${UNITSDIR}/
systemctl enable acpid.socket
+install-apcupsd: create-dirs
+ install -m ${CONFMODE} clfs/tmpfiles/apcupsd.conf ${TMPFILESDIR}/
+ install -m ${CONFMODE} clfs/units/apcupsd.service ${UNITSDIR}/
+ systemctl enable apcupsd.service
+
install-dhcpd: create-dirs
install -m ${CONFMODE} clfs/default/dhcpd ${DEFAULTSDIR}/
install -m ${CONFMODE} clfs/units/dhcpd.service ${UNITSDIR}/
diff --git a/README b/README
index 7c6de2e..259c348 100644
--- a/README
+++ b/README
@@ -1,12 +1,12 @@
blfs-units:
This package contains the Systemd units that are mentioned
-in the BLFS Systemd book.
+in the BLFS Systemd BOOK.
The various install targets are mentioned in the BLFS
Systemd book. There are variables defined for script
permissions {MODE}, configuration and units file
permissions {CONFMODE}, directory permissions {DIRMODE}
and destination directory {DESTDIR}. For more information
-refer to the BLFS Systemd book at
+refer to the BLFS Systemd BOOK at
http://www.linuxfromscratch.org/blfs/ .
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