I patched terrasync to make it more usable, more like a proper daemon
 -- writes pid to file
 -- normally does not exit until signalled
 -- uses blocking and non-blocking I/O as appropriate.

http://gitorious.org/~jsd/fg/sport-model/commits/sport

Usage example:

pid=$(cat $pidfile 2>/dev/null)
if test -n "$pid" && kill -0 $pid ; then
    echo "terrasync already running: $pid"
else
    nice /games/sport/fgs/utils/TerraSync/terrasync         \
      -v -pid $pidfile -S -p 5500 -d /games/orig/terrasync &
fi


------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to