Hi John,
On Monday 07 December 2009 11:54:25 pm John Denker wrote:
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.
This is now committed to CVS. If
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
Very nice. :) I have always used this before:
// Startup code
nice -n 19 terrasync -p ${PORT} -s ${SOURCE} -d ${FG_HOME}/Scenery/
${FG_HOME}/terrasync.log 21
///
// Stop code after usage
killall terrasync rsync
sleep 1
killall terrasync rsync
///
On Mon, 2009-12-07 at
3 matches
Mail list logo