[mw-devel] MW3 r1341 - trunk

tswsl1989 at sucs.org tswsl1989 at sucs.org
Mon Oct 14 18:31:15 BST 2013


Author: tswsl1989
Date: 2013-10-14 18:31:15 +0100 (Mon, 14 Oct 2013)
New Revision: 1341

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

Modified: trunk/mwserv.init
===================================================================
--- trunk/mwserv.init	2013-10-13 21:54:42 UTC (rev 1340)
+++ trunk/mwserv.init	2013-10-14 17:31:15 UTC (rev 1341)
@@ -20,7 +20,7 @@
 NAME=mwserv
 DAEMON=/usr/lib/mw/$NAME
 DAEMON_ARGS="--port 9999"
-PIDFILE=/var/run/$NAME.pid
+PIDFILE=/run/$NAME.pid
 SCRIPTNAME=/etc/init.d/$NAME
 
 # Exit if the package is not installed
@@ -98,6 +98,8 @@
 case "$1" in
   start)
 	[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
+	[ -e /run/mw ] || install -d -omw -gmw -m755 /run/mw
+
 	do_start
 	case "$?" in
 		0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;




More information about the mw-devel mailing list