network-ups-tools: create /run/ups when service starts
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user