Hello, egd-

Here it is. My username on the computer is a2 (there is no a1... just
me). The only difference I see with your code is that you're working
from your desktop... not sure if that matters. Also, yours talks about
a different path "# PATH ...". My home directory is a2, so the path is
a2/MusicIP/MusicMagicMixer/mmserver ... don't know if that helps, but
anyway.

Enjoy your weekend; I'd like to get this working, but the analysis will
take ~ 12 hrs+ anyway, so there's hardly a rush.

Thanks yet again.


Code:
--------------------
    
  [EMAIL PROTECTED]:~$ cat /etc/init.d/mmserver
  #! /bin/sh
  
  # NON-PRIVIELEGED USER TO RUN MUSICMAGICSERVER.
  USER=a2
  # PATH TO THE MUSICMAGICMIXERSERVER 
  export MUSICHOME=/home/a2/MusicIP
  case $1 in
  start)
        su - $USER -c $MUSICHOME"MusicMagicServer start  & > /dev/null" 
        echo "Running MusicMagicServer"
        exit
        ;;
  stop)
        su - $USER -c $MUSICHOME"MusicMagicServer stop  & > /dev/null" 
        echo "Stopped MusicMagicServer"
        exit
        ;;
  *)
  echo "Usage: /etc/rc.d/init.d/mmserver { start | stop }"
        exit
        ;;
  esac
  
  [EMAIL PROTECTED]:~$ 
--------------------


-- 
lork
------------------------------------------------------------------------
lork's Profile: http://forums.slimdevices.com/member.php?userid=17438
View this thread: http://forums.slimdevices.com/showthread.php?t=48270

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

Reply via email to