7 PID
=`ps -A -F | grep -v grep | grep "/usr/bin/python2 /usr/bin/mopidy" | awk '{print $2}'`
11 stat_busy
"Starting Mopidy"
12 if [ -z "$MOPIDY_USER" ]; then
13 stat_busy
"No MOPIDY_USER, please edit /etc/conf.d/mopidy"
16 [ -z "$PID" ] && su
-l -s /bin
/sh
-c "/usr/bin/mopidy &> /dev/null &" "$MOPIDY_USER"
26 stat_busy
"Stopping Mopidy"
27 [ ! -z "$PID" ] && kill $PID &> /dev
/null
37 while [ ! -z "$PID" -a -d "/proc/$PID" ]; do sleep 1; done
41 echo "usage: $0 {start|stop|restart}"