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:
parent
82ce840224
commit
dca2cd8d4c
2 changed files with 4 additions and 1 deletions
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
|
||||
|
|
Loading…
Reference in a new issue