Diana;203541 Wrote: 
>  
> 
> (they seemed to say that the version of SS had been changed to 6.3.1
> ??);  and, when I opened the SS web interface the Fishbone Tan skin I
> use was scrambled, with parts of it black, and the text misaligned - is
> if there had been a partial attempt to use the default skin.  
> 

A bit strange. The changes to the slimserver script should not affect
the the operation of slimserver in any way. Can you confirm that if you
use the original script, slimserver starts correctly? 

> 
> 
> STATUS=`ps -e | grep $PROGRAM | grep -v grep | wc -l | awk '{print
> $1}'` 
> 
> (I guess this is identifying whether MMS is currently running?) 
> 
> 

Yes, that's the idea. Try substituting '-e' with 'aux'. 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, which
would leave only

USER=diana
PROGRAM=MusicMagicServer
( sudo -u $USER -H $PROGRAM start & )
sleep 10

I added the sleep to make sure that MIP is up before starting
slimserver. It could probably be shorter than 10 s.

And if you care:

STATUS=`ps -e | grep $PROGRAM | grep -v grep | wc -l | awk '{print
$1}'` 

works as follows. A | B sends the output of command A to the input of
B. 'ps aux' lists all running processes. 'grep $PROGRAM' picks the
lines where the string $PROGRAM occurs. Since 'grep $PROGRAM' is itself
a program mentioning the string $PROGRAM, 'grep -v grep' removes the
lines where the string grep occurs. 'wc -l' counts the number of
newlines. 'awk {print $1}' makes sure that only an integer is finally
output (for the comparison made later in the script). You can try it
out in a terminal and see how it works. Start by:

$ ps aux

look for a program named e.g. NAME

$ ps aux | grep NAME
$ ps aux | grep NAME | grep -v NAME

and so on...

the line 'sudo -u USER -H $PROGRAM start' means that $PROGRAM should be
started as $USER, '-H' means that it should also set $HOME to
/home/$USER. The whole thing to make sure MIP pics up the analysis date
and stuff genereted by $USER and stored in $HOME/.MusicMagic


-- 
bhaagensen
------------------------------------------------------------------------
bhaagensen's Profile: http://forums.slimdevices.com/member.php?userid=7418
View this thread: http://forums.slimdevices.com/showthread.php?t=35443

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

Reply via email to