Update of /cvsroot/freevo/freevo
In directory sc8-pr-cvs1:/tmp/cvs-serv15213

Modified Files:
        freevo 
Log Message:
support "freevo start" to start in background

Index: freevo
===================================================================
RCS file: /cvsroot/freevo/freevo/freevo,v
retrieving revision 1.75
retrieving revision 1.76
diff -C2 -d -r1.75 -r1.76
*** freevo      31 Aug 2003 09:17:25 -0000      1.75
--- freevo      31 Aug 2003 11:02:37 -0000      1.76
***************
*** 12,15 ****
--- 12,18 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.76  2003/08/31 11:02:37  dischi
+ # support "freevo start" to start in background
+ #
  # Revision 1.75  2003/08/31 09:17:25  dischi
  # support for start-stop helper scripts
***************
*** 165,173 ****
      echo "  -fs            start freevo in a new x session in fullscreen"
      echo "  setup          run freevo setup to scan your environment"
!     echo "  execute [file] execute a script inside the freevo environment"
      echo "  stop           stop the current freevo process"
      echo
      echo "freevo can start the following scripts, use --help on these"
!     echo "scripts to get more informations about options"
      echo
  
--- 168,176 ----
      echo "  -fs            start freevo in a new x session in fullscreen"
      echo "  setup          run freevo setup to scan your environment"
!     echo "  start          start freevo as daemon in background"
      echo "  stop           stop the current freevo process"
      echo
      echo "freevo can start the following scripts, use --help on these"
!     echo "scripts to get more informations about options."
      echo
  
***************
*** 179,185 ****
--- 182,194 ----
      done
      echo
+     echo "Example: freevo imdb --help"
+     echo "         freevo webserver start"
+     echo
      echo "You can also create a symbolic link to free with the name of the"
      echo "script you want to execute. E.g. put a link imdb pointing to freevo"
      echo "in your patch to access the imdb helper script"
+     echo 
+     echo "Example: ln -s path-to-freevo imdb"
+     echo "         imdb --help"
      echo
      echo "Before running freevo the first time, you need to run 'freevo setup'"
***************
*** 293,296 ****
--- 302,316 ----
  else
      OPTIMZE="-OO"
+ fi
+ 
+ if [ "$1" == "start" ]; then
+     shift
+ 
+     # Start the main freevo application
+     $RUNAPP python $OPTIMZE $FREEVO_PYTHON/main.py $@ >/dev/null 2>/dev/null&
+     
+     echo $! > $PID_FILE
+     disown
+     exit 0
  fi
  




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to