void-packages/srcpkgs/network-ups-tools/files/upsdrvctl/run

7 lines
151 B
Bash
Executable File

#!/bin/sh
exec 2>&1
# Network UPS Tools - driver controller
install -d -m 0770 -o nut -g nut /run/ups
upsdrvctl -D start
exec chpst -b upsdrvctl pause