[mw-devel] MW3 r1375 - trunk

imranh at sucs.org imranh at sucs.org
Sat Jan 17 15:09:57 GMT 2015


Author: imranh
Date: 2015-01-17 15:09:57 +0000 (Sat, 17 Jan 2015)
New Revision: 1375

Modified:
   trunk/mwserv.init
Log:
Create /var/run/mw/ on startup if it doesn't already exist

Modified: trunk/mwserv.init
===================================================================
--- trunk/mwserv.init	2014-10-28 14:11:20 UTC (rev 1374)
+++ trunk/mwserv.init	2015-01-17 15:09:57 UTC (rev 1375)
@@ -42,6 +42,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
+
 	# Return
 	#   0 if daemon has been started
 	#   1 if daemon was already running




More information about the mw-devel mailing list