[Csync2] cron "overruns"
Weinzierl Stefan
Stefan at weinzierl-stefan.de
Tue Jan 6 08:29:30 CET 2015
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
More information about the Csync2
mailing list