summaryrefslogtreecommitdiffstats
path: root/system/nut/rc.ups
diff options
context:
space:
mode:
Diffstat (limited to 'system/nut/rc.ups')
-rw-r--r--system/nut/rc.ups3
1 files changed, 3 insertions, 0 deletions
diff --git a/system/nut/rc.ups b/system/nut/rc.ups
index 0d9f4bc769..37916951bd 100644
--- a/system/nut/rc.ups
+++ b/system/nut/rc.ups
@@ -49,6 +49,9 @@ stop() {
case "$1" in
start) # starts everything (for a ups server box)
+ mkdir -p /var/run/nut
+ chown $NUTUSER:$NUTGROUP /var/run/nut
+ chmod 0770 /var/run/nut
start_driver
start_upsd
start_upsmon