Add wrappers that check the MODE in /etc/nut/nut.conf to avoid starting the daemons if nut is not configured (Closes: #747863).
This commit is contained in:
parent
fedf671e4d
commit
241119d464
6 changed files with 49 additions and 1 deletions
6
debian/rules
vendored
6
debian/rules
vendored
|
|
@ -77,6 +77,12 @@ common-install-arch::
|
|||
ln -s /lib/$(DEB_HOST_MULTIARCH)/libupsclient.so.4 \
|
||||
$(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libupsclient.so
|
||||
|
||||
# Move daemons and install wrappers
|
||||
mv $(CURDIR)/debian/tmp/sbin/upsmon $(CURDIR)/debian/tmp/lib/nut/upsmon
|
||||
mv $(CURDIR)/debian/tmp/sbin/upsd $(CURDIR)/debian/tmp/lib/nut/upsd
|
||||
install -m 0755 debian/local/upsmon $(CURDIR)/debian/tmp/sbin/upsmon
|
||||
install -m 0755 debian/local/upsd $(CURDIR)/debian/tmp/sbin/upsd
|
||||
|
||||
# Install systemd files only on systems where it's supported
|
||||
ifeq (linux,$(DEB_HOST_ARCH_OS))
|
||||
install -m 644 -D $(CURDIR)/debian/tmp/lib/$(DEB_HOST_MULTIARCH)/systemd/system/nut-monitor.service \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue