aboutsummaryrefslogtreecommitdiff
path: root/system/nut
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2021-04-26 11:56:05 +0200
committerRobby Workman <rworkman@slackbuilds.org>2021-04-27 01:05:30 -0500
commitc0d46116f3696c825e7d46da166302666dd20a53 (patch)
tree56d28d5b9ec98b13828fc4f9e2ad7daff514dd40 /system/nut
parented507416000394d2898838f2130415db8648315b (diff)
system/nut: Dynamically create /var/run/nut/
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/nut')
-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 0d9f4bc769183..37916951bd92a 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