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-gentoo-portage.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-gentoo-portage.sh')
-rwxr-xr-x | bin/sync-gentoo-portage.sh | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/bin/sync-gentoo-portage.sh b/bin/sync-gentoo-portage.sh index 3f8c552..e9ca82b 100755 --- a/bin/sync-gentoo-portage.sh +++ b/bin/sync-gentoo-portage.sh @@ -5,12 +5,5 @@ OPTS="--quiet --recursive --links --perms --times --devices --compress --delete SRC="rsync://masterportage.gentoo.org/gentoo-portage" DST="/raid/gentoo-portage/" -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` |