On 06.01.2015 04:16, Marc Fournier wrote:

Terrible subject, sorry … basically, if I setup cron to run csync2 every 10 
minutes, if it takes longer then 10 minutes, is there anything that prevents 
another instance of csync2 from starting up?

Hello,

I use this script:

#!/bin/sh

PIDFILE=/var/run/csync2.sh.pid

if [ -e $PIDFILE ]; then
  kill -s 0 `cat $PIDFILE` && exit;
fi

echo $$ > $PIDFILE

/usr/sbin/csync2 -x -B

rm $PIDFILE -rf


Stefan
_______________________________________________
Csync2 mailing list
Csync2@lists.linbit.com
http://lists.linbit.com/mailman/listinfo/csync2

Reply via email to