Install tmpfiles conf files to create /run/nut directory during boot

This commit is contained in:
Laurent Bigonville 2013-01-26 01:01:44 +01:00
parent 47044fe3b0
commit 11b7980da6
4 changed files with 10 additions and 1 deletions

6
debian/rules vendored
View file

@ -80,6 +80,12 @@ ifeq (linux,$(DEB_HOST_ARCH_OS))
install -m 644 -D $(CURDIR)/debian/tmp/lib/$(DEB_HOST_MULTIARCH)/systemd/system/nut-server.service \
$(CURDIR)/debian/nut-server/lib/systemd/system/nut-server.service
# Install tmpfiles config file to create /run/nut directory
install -m 644 -D $(CURDIR)/debian/nut-client.tmpfiles \
$(CURDIR)/debian/nut-client/usr/lib/tmpfiles.d/nut-client.conf
install -m 644 -D $(CURDIR)/debian/nut-server.tmpfiles \
$(CURDIR)/debian/nut-server/usr/lib/tmpfiles.d/nut-server.conf
# This is needed to avoid services to be started twice (systemd and LSB)
mkdir -p $(CURDIR)/debian/nut-client/etc/systemd/system/
ln -s /lib/systemd/system/nut-monitor.service \