diff --git a/srcpkgs/network-ups-tools/files/upsdrvctl/finish b/srcpkgs/network-ups-tools/files/upsdrvctl/finish new file mode 100755 index 00000000000..f776c9a6808 --- /dev/null +++ b/srcpkgs/network-ups-tools/files/upsdrvctl/finish @@ -0,0 +1,2 @@ +#!/bin/sh +upsdrvctl -D stop diff --git a/srcpkgs/network-ups-tools/files/upsdrvctl/run b/srcpkgs/network-ups-tools/files/upsdrvctl/run index cdc768fc329..aab0bcc121f 100755 --- a/srcpkgs/network-ups-tools/files/upsdrvctl/run +++ b/srcpkgs/network-ups-tools/files/upsdrvctl/run @@ -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