d/p/0004-fix-systemd-service.patch: Fix systemd service file for Debian
This commit is contained in:
parent
853f3503ce
commit
47044fe3b0
3 changed files with 31 additions and 1 deletions
28
debian/patches/0004-fix-systemd-service.patch
vendored
Normal file
28
debian/patches/0004-fix-systemd-service.patch
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
Subject: Fix systemd service file for Debian
|
||||
From: Laurent Bigonville <bigon@debian.org>
|
||||
Forwarded: not-needed
|
||||
|
||||
--- a/scripts/systemd/nut-driver.service.in
|
||||
+++ b/scripts/systemd/nut-driver.service.in
|
||||
@@ -1,10 +1,11 @@
|
||||
[Unit]
|
||||
Description=Network UPS Tools - power device driver controller
|
||||
-After=local-fs.target network.target
|
||||
+After=local-fs.target network.target udev-settle.service
|
||||
+Wants=udev-settle.service
|
||||
StopWhenUnneeded=yes
|
||||
|
||||
[Service]
|
||||
-ExecStart=@driverexecdir@/upsdrvctl start
|
||||
-ExecStop=@driverexecdir@/upsdrvctl stop
|
||||
+ExecStart=@SBINDIR@/upsdrvctl start
|
||||
+ExecStop=@SBINDIR@/upsdrvctl stop
|
||||
Type=forking
|
||||
|
||||
--- a/scripts/systemd/nut-monitor.service.in
|
||||
+++ b/scripts/systemd/nut-monitor.service.in
|
||||
@@ -9,3 +9,4 @@ Type=forking
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
+Alias=nut-client.service
|
||||
1
debian/patches/series
vendored
1
debian/patches/series
vendored
|
|
@ -1,2 +1,3 @@
|
|||
0003-install-dev-files-in-usr.patch
|
||||
0002-nut-monitor-paths.patch
|
||||
0004-fix-systemd-service.patch
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue