From 6e1dd2516f260a0361d65b58509106a615d0c149 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Thu, 15 Mar 2012 22:02:41 +0100 Subject: syncer scripts: move locking to cronwrapper now lockfile-progs is used as replacement for the lockfile command of procmail --- bin/sync-siduction.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'bin/sync-siduction.sh') diff --git a/bin/sync-siduction.sh b/bin/sync-siduction.sh index 997e0ec..9297ceb 100755 --- a/bin/sync-siduction.sh +++ b/bin/sync-siduction.sh @@ -6,11 +6,5 @@ OPTS="-prtlvH --delete-after --delay-updates --safe-links" SRC="rsync://sync.siduction.org:/siduction" DST="/mirror/ftp/pub/siduction/" -lockfile=/tmp/`basename $0`.lock - -if lockfile -r 5 $lockfile -then - ${RSYNC} ${OPTS} ${SRC} ${DST} - echo "End: "`date` - rm -f $lockfile -fi +${RSYNC} ${OPTS} ${SRC} ${DST} +echo "End: "`date` -- cgit v1.2.3-1-g7c22