diff options
Diffstat (limited to 'mirror-arch-repos.sh')
| -rwxr-xr-x | mirror-arch-repos.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mirror-arch-repos.sh b/mirror-arch-repos.sh new file mode 100755 index 0000000..f52d06b --- /dev/null +++ b/mirror-arch-repos.sh @@ -0,0 +1,8 @@ +#!/bin/bash +LOG="/var/log/mirrors/arch-mirror-repos.log" +LOCK="/var/lock/arch-repos.lock" + +# Short jitter, since this runs every 5 min +sleep $((RANDOM % 60)) +exec flock -n "$LOCK" \ + /usr/local/sbin/archmirror-repos.sh >> "$LOG" 2>&1 |
