diff options
author | Jan Holesovsky <kendy@suse.cz> | 2010-08-13 11:31:59 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2010-08-13 11:31:59 +0200 |
commit | 6cccdbc9d8b3129bd3e4af1ba0208851a9f45ad6 (patch) | |
tree | d64777308c68a7115e99ca30e54cb4156f8b8bf7 | |
parent | 84897956ea2020476d59ca8920e12ac83e01bcda (diff) |
Lock when running the tinderbox update.
-rw-r--r-- | .gitignore | 1 | ||||
-rwxr-xr-x | bin/tinderupdate.sh | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a203a42 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/bin/tinderbox.lock diff --git a/bin/tinderupdate.sh b/bin/tinderupdate.sh index a24321c..ca05406 100755 --- a/bin/tinderupdate.sh +++ b/bin/tinderupdate.sh @@ -6,6 +6,9 @@ TINDERBOX_LOG=/var/log/tinderbox/tinderbox2.log cd /srv/tinderbox +( +flock 200 + echo starting update at $(date -u) >> $TINDERBOX_LOG # update the tag-lists touch $TINDERBOX_WWW/tags/tag-list.tstamp @@ -18,3 +21,5 @@ $TINDERBOX_BIN/bypass_postfixlimit.sh >> $TINDERBOX_LOG 2>&1 # regenerate tinderbox-HTML pages $TINDERBOX_WWW/tinder.cgi >> $TINDERBOX_LOG 2>&1 echo finished updating at $(date -u) >> $TINDERBOX_LOG + +) 200>$TINDERBOX_BIN/tinderbox.lock |