debian/patches/0004-fix-systemd-service.patch: Refreshed
This commit is contained in:
parent
a766575eca
commit
c94a1d80c6
2 changed files with 3 additions and 14 deletions
14
debian/patches/0004-fix-systemd-service.patch
vendored
14
debian/patches/0004-fix-systemd-service.patch
vendored
|
|
@ -4,7 +4,7 @@ Forwarded: not-needed
|
|||
|
||||
--- a/scripts/systemd/nut-driver.service.in
|
||||
+++ b/scripts/systemd/nut-driver.service.in
|
||||
@@ -1,10 +1,11 @@
|
||||
@@ -1,6 +1,7 @@
|
||||
[Unit]
|
||||
Description=Network UPS Tools - power device driver controller
|
||||
-After=local-fs.target network.target
|
||||
|
|
@ -13,15 +13,3 @@ Forwarded: not-needed
|
|||
StopWhenUnneeded=yes
|
||||
|
||||
[Service]
|
||||
-ExecStart=@DRVPATH@/upsdrvctl start
|
||||
-ExecStop=@DRVPATH@/upsdrvctl stop
|
||||
+ExecStart=@SBINDIR@/upsdrvctl start
|
||||
+ExecStop=@SBINDIR@/upsdrvctl stop
|
||||
Type=forking
|
||||
|
||||
--- a/scripts/systemd/nutshutdown.in
|
||||
+++ b/scripts/systemd/nutshutdown.in
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
-@SBINDIR@/upsmon -K >/dev/null 2>&1 && @driverexecdir@/upsdrvctl shutdown
|
||||
+@SBINDIR@/upsmon -K >/dev/null 2>&1 && @SBINDIR@/upsdrvctl shutdown
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue