network-ups-tools: fix upsdrvctl service
upsdrvctl will not stay in the foreground, even with -D. It will start drivers and quit. Use pause, and a separate finish script to kill the drivers.
This commit is contained in:
2
srcpkgs/network-ups-tools/files/upsdrvctl/finish
Executable file
2
srcpkgs/network-ups-tools/files/upsdrvctl/finish
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
upsdrvctl -D stop
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/bin/sh
|
||||
# Network UPS Tools - driver controller
|
||||
install -d -m 0770 -o nut -g nut /run/ups
|
||||
exec upsdrvctl -D start
|
||||
upsdrvctl -D start
|
||||
exec chpst -b upsdrvctl pause
|
||||
|
||||
Reference in New Issue
Block a user