network-ups-tools: create /run/ups when service starts

This commit is contained in:
Dominik Honnef 2015-06-28 05:35:44 +02:00
parent 80d56129ae
commit 82ce840224
2 changed files with 3 additions and 1 deletions

View file

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
# Network UPS Tools - information server # Network UPS Tools - information server
# upsmon will run in the foreground and prints information on stdout # upsd will run in the foreground and prints information on stdout
install -d -m 0770 -o nut -g nut /run/ups
exec upsd -D exec upsd -D

View file

@ -1,3 +1,4 @@
#!/bin/sh #!/bin/sh
# Network UPS Tools - driver controller # Network UPS Tools - driver controller
install -d -m 0770 -o nut -g nut /run/ups
exec upsdrvctl -D start exec upsdrvctl -D start