You don't need frames to view this website. Flash communication server. Flash mx xml socket server.
Home
Main Menu
Home
- - - - - - -
What is Palabre ?
Features
News
FAQ
Forum
DEMO
- - - - - - -
Downloads !
Browse SVN
- - - - - - -
Search
Contact Us
- - - - - - -
Sourceforge Project Page
Python
Links
Palabre on Facebook






Actionscript for Multiplayer games
 
Download Palabre Flash Xml Socket Server DOWNLOAD Download Palabre Flash Xml Socket Server FORUM Download Palabre Flash Xml Socket Server FAQ Download Palabre Flash Xml Socket Server WHAT IS IT
 



Using Palabre ? Coming here for Support ? Please consider making an (even small) donation :)
Palabre Forum  


::post new topic::
Palabre 0.3 - Startup Script - 2005/11/19 23:28 The following startup script may be useful to run Palabre 0.3 in daemon mode. Based on a shoutcast startup script that I found at

http://www.seebq.com/projects/shoutcast

I'm now using Palabre in a production environment at http://www.sunsetbeachbar.com/livecam - looks excellent so far.

Thanks!!!!

Code:

  #!/usr/local/bin/bash # # description: Starts and stops Palabre Chat Server.  # # binaries in /usr/local/palabre-0.3 #      log in /var/log #  # stop (){   #First we want to kill the original servers, so we don't get errors.   echo "Killing old palabre server."   for oldpid in `ps -U nobody | grep PalabreStart.py | cut -c 1-7`; do       kill $oldpid       if [[ $== "-v" ]]       then           echo 'Killed: '$oldpid       fi   done   rm -/var/run/shoutcast.pid } start (){   #Now we can start the servers up.   if [[ $== "-v" ]]        then           echo "Starting up the new Palabre server..."       fi              sudo -u nobody nohup python  /usr/local/palabre-0.3/PalabreStart.py >> / usr/local/palabre-0.3/palabre.log &          #Create the pid file...   ps -grep PalabreStart.py cut -c 1-> /var/run/palabre.pid   #Done now! } case "$1" in   start)         if [[ ! -/var/run/palabre.pid ]]   then     start $2          if [[ -/var/run/palabre.pid ]]      then                 echo "Startup                         [SUCCESS]"     fi        else     if [[ $== "-v" ]]     then         echo "Palabre is already running these processes:"         #Toldja! Checks before displaying pid file.         if [[ -/var/run/palabre.pid ]]         then             cat /var/run/palabre.pid         fi         echo "Try calling palabrectl restart in order to kill old processes."     else         echo "palabre is already running. Try calling palabrectl restart."     fi     echo "Startup                         [FAILED]"   fi     ;;   restart)       stop $2       if [[ $== "-v" ]]         then             echo "Waiting for the old servers to die..."         fi     sleep 4     start $2     if [[ -/var/run/palabre.pid ]]      then                 echo "Startup                         [SUCCESS]"     fi     ;;   stop)   if [[ -/var/run/palabre.pid ]];   then     stop $2     echo "Palabre shutdown                     [SUCCESS]"   else       echo "There are no registered palabre servers running right now. Attempting to kill anyways."     stop $2   fi       ;;   *)   echo "Usage: palabrectl (start|stop|restart) [-v]" esac

  reply | quote

      Topics Author Date
    emo
Palabre 0.3 - Startup Script
Norbert 2005/11/19 23:28
    thread link
thread linkthread link Re:Palabre 0.3 - Startup Script
Célio Conort 2005/11/21 16:52
    thread link
thread linkthread linkthread link Re:Palabre 0.3 - Startup Script
Norbert 2006/01/17 20:22
    thread link
thread linkthread linkthread linkthread link Re:Palabre 0.3 - Startup Script
Célio Conort 2006/01/18 11:41
::post new topic::