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

3
debian/changelog vendored
View file

@ -9,6 +9,7 @@ nut (2.6.5-2) UNRELEASED; urgency=low
* debian/rules: Alias systemd nut-monitor service file to nut-client to
prevent it from running twice
* d/p/0004-fix-systemd-service.patch: Fix systemd service file for Debian
* Install tmpfiles conf files to create /run/nut directory during boot
[ Sébastien Villemot ]
* debian/nut-client.preinst: revert /etc/nut/nut.conf mangling done by older
@ -21,7 +22,7 @@ nut (2.6.5-2) UNRELEASED; urgency=low
* Also remove /etc/init.d/nut in nut-client postinst. Thanks to
Laurent Bigonville for the hint.
-- Laurent Bigonville <bigon@debian.org> Sat, 26 Jan 2013 00:15:43 +0100
-- Laurent Bigonville <bigon@debian.org> Sat, 26 Jan 2013 00:59:10 +0100
nut (2.6.5-1) experimental; urgency=low

1
debian/nut-client.tmpfiles vendored Normal file
View file

@ -0,0 +1 @@
d /run/nut 0770 root nut - -

1
debian/nut-server.tmpfiles vendored Normal file
View file

@ -0,0 +1 @@
d /run/nut 0770 root nut - -

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 \