Commit d32634c2 authored by Thomas Lake's avatar Thomas Lake 🔧
Browse files

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

parent aa185482
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -45,9 +45,12 @@ 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
	fi

	# 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