diff --git a/nut-monitor b/nut-monitor index f06e565..a7a3f1e 100644 --- a/nut-monitor +++ b/nut-monitor @@ -9,7 +9,9 @@ restart() { } start_service() { - upsmon -p + mkdir -p /var/run/nut + chmod 700 /var/run/nut + upsmon -p } stop_service() { diff --git a/nut-server b/nut-server index ce1bdb0..1b3f614 100644 --- a/nut-server +++ b/nut-server @@ -9,8 +9,11 @@ restart() { } start_service() { - upsdrvctl start - upsd + mkdir -p /var/run/nut + chmod 700 /var/run/nut + chown root:root /var/run/nut + upsdrvctl start + upsd } stop_service() {