Commit 0d308634 authored by Imran Hussain's avatar Imran Hussain

Create /var/run/mw/ on startup if it doesn't already exist

parent d01f9ae6
......@@ -42,6 +42,12 @@ SCRIPTNAME=/etc/init.d/$NAME
#
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
# 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