2013-01-25 23:19:45 +00:00
|
|
|
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
|
2013-11-24 15:23:35 +00:00
|
|
|
+After=local-fs.target network.target systemd-udev-settle.service
|
|
|
|
+Wants=systemd-udev-settle.service
|
2013-01-25 23:19:45 +00:00
|
|
|
StopWhenUnneeded=yes
|
|
|
|
|
|
|
|
[Service]
|
2013-11-24 15:23:35 +00:00
|
|
|
-ExecStart=@DRVPATH@/upsdrvctl start
|
|
|
|
-ExecStop=@DRVPATH@/upsdrvctl stop
|
2013-01-25 23:19:45 +00:00
|
|
|
+ExecStart=@SBINDIR@/upsdrvctl start
|
|
|
|
+ExecStop=@SBINDIR@/upsdrvctl stop
|
|
|
|
Type=forking
|
|
|
|
|
2013-07-10 20:48:24 +00:00
|
|
|
--- 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
|