This is my mmserver file content. I added the qemu-i386 into the script.
Hope it is the correct way. At least Musicip starts:

#! /bin/sh

### BEGIN INIT INFO
# Provides: mmserver
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start MusicIP daemon at boot time
# Description: Enable service provided by daemon.
### END INIT INFO



# NON-PRIVIELEGED USER TO RUN MUSICMAGICSERVER.
USER=osmc
# PATH TO THE MUSICMAGICMIXERSERVER 
export MUSICHOME=/home/osmc/MusicIP/MusicMagicMixer/
case $1 in
start)
# next line was original
# su - $USER -c $MUSICHOME"MusicMagicServer start & > /dev/null" 
sudo -u osmc qemu-i386
/home/osmc/MusicIP/MusicMagicMixer/MusicMagicServer start & > /dev/null
2>&1
echo "Running MusicMagicServer"
exit
;;
stop)
# next line was original
# su - $USER -c $MUSICHOME"MusicMagicServer stop & > /dev/null" 
sudo -u osmc qemu-i386
/home/osmc/MusicIP/MusicMagicMixer/MusicMagicServer stop & > /dev/null
2>&1
echo "Stopped MusicMagicServer"
exit
;;
*)
echo "Usage: /etc/rc.d/init.d/mmserver { start | stop }"
exit
;;
esac


------------------------------------------------------------------------
CypherMK's Profile: http://forums.slimdevices.com/member.php?userid=62798
View this thread: http://forums.slimdevices.com/showthread.php?t=106958

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to