debian/rules: Alias systemd nut-monitor service file to nut-client to prevent it from running twice
This commit is contained in:
parent
715368e54f
commit
853f3503ce
2 changed files with 8 additions and 1 deletions
5
debian/rules
vendored
5
debian/rules
vendored
|
|
@ -79,6 +79,11 @@ ifeq (linux,$(DEB_HOST_ARCH_OS))
|
|||
$(CURDIR)/debian/nut-server/lib/systemd/system/nut-driver.service
|
||||
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
|
||||
|
||||
# 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 \
|
||||
$(CURDIR)/debian/nut-client/etc/systemd/system/nut-client.service
|
||||
endif
|
||||
|
||||
common-install-indep::
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue