debian/rules, debian/control, d/p/0004-fix-systemd-service.patch: Use a symlink instead of an Alias= to mask the SysV initscript
This commit is contained in:
parent
e02d926691
commit
9b564eb7df
4 changed files with 11 additions and 8 deletions
3
debian/rules
vendored
3
debian/rules
vendored
|
|
@ -80,6 +80,9 @@ 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
|
||||
|
||||
# Add a symlink to mask the LSB initscript
|
||||
ln -s nut-monitor.service $(CURDIR)/debian/nut-client/lib/systemd/system/nut-client.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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue