Commit 4667fab1 authored by Tom Lake's avatar Tom Lake 🔧

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

parent 18f3f405
......@@ -20,7 +20,7 @@ DESC="Milliways comms server"
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 @@ do_reload() {
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 ;;
......
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