bhaagensen;203559 Wrote: > ... I've noticed that on my computer it seems that if MIP is running > issuing 'MusicMagicServer start' detects this and does not try > restarting MIP, so the test should be unessecary. You could try > removing it I also think I've read something about JAVA_HOME needing to > be set even if MMS does not use java.
bhaagensen >>> I tried your new version, and it stopped because it could not find MusicMagicServer. So I put the full path into the 'PROGRAM= ' line, as below. set -e JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.00 USER='my-username' PROGRAM=/home/'my-username'/MusicIP/MusicMagicMixer/MusicMagicServer ( sudo -u $USER -H $PROGRAM start & ) sleep 10 You'll notice that I had to change your JAVA_HOME path slightly to match the actual path on my system. And I'm sure you could suggest a more elegant way of defining PROGRAM so that the script would work for any system. But no matter, this now works perfectly! (Of course, the 'slimserver stop' runs the MMS start before it stops SS; but that's a minor issue - I can just stop MMS manually if need be.) I can't tell you how grateful I am for your help with this. And I'm certain this thread will be very useful to other GNU/Linux newbies who are trying to get MIP+SS to work. Many thanks for your time and trouble. Best wishes. -- Diana -- Diana ------------------------------------------------------------------------ Diana's Profile: http://forums.slimdevices.com/member.php?userid=7463 View this thread: http://forums.slimdevices.com/showthread.php?t=35443 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/plugins
