diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-03-15 22:02:41 +0100 |
---|---|---|
committer | syncer <root@plopp.spline.de> | 2012-03-15 22:02:41 +0100 |
commit | 6e1dd2516f260a0361d65b58509106a615d0c149 (patch) | |
tree | ffd6c02e8b1b21e3182a3ed502f8644898d4db98 /bin/sync-crux.sh | |
parent | 657d1fc484fa0b21b979525a92ace5c9e6f63da2 (diff) | |
download | mirror-sync-6e1dd2516f260a0361d65b58509106a615d0c149.tar.gz mirror-sync-6e1dd2516f260a0361d65b58509106a615d0c149.tar.bz2 mirror-sync-6e1dd2516f260a0361d65b58509106a615d0c149.zip |
syncer scripts: move locking to cronwrapper
now lockfile-progs is used as replacement for the lockfile command of procmail
Diffstat (limited to 'bin/sync-crux.sh')
-rwxr-xr-x | bin/sync-crux.sh | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/bin/sync-crux.sh b/bin/sync-crux.sh index 9b14f6b..30c52a8 100755 --- a/bin/sync-crux.sh +++ b/bin/sync-crux.sh @@ -5,11 +5,5 @@ OPTS="--quiet --recursive --links --perms --times --devices --delete --timeout=6 SRC="rsync://rsync.crux.nu/crux/" DST="/mirror/ftp/pub/crux/" -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` |