Commit d32634c2 authored by Tom Lake's avatar Tom Lake 🔧

Always set permissions on /var/run/mw in init script

parent aa185482
......@@ -44,10 +44,13 @@ do_start()
# check if the mw folder in /var/run exists, if not then make it
if [ ! -d /var/run/mw ]; then
mkdir /var/run/mw
chown mw:mw /var/run/mw
mkdir /var/run/mw
# Occasionally /var/run/mw ends up with the wrong permissions
# Running this unconditionally should ensure that we always have ownership
chown mw:mw /var/run/mw
# Return
# 0 if daemon has been started
# 1 if daemon was already running
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment