diff options
| author | doc <doc@filenotfound.org> | 2025-10-01 20:35:47 +0000 |
|---|---|---|
| committer | doc <doc@filenotfound.org> | 2025-10-01 20:35:47 +0000 |
| commit | 772152a5810aa8c4e03cf167381aadc4ec00499f (patch) | |
| tree | ba9418142f88622da878d9a3483c5da2da3e5c83 /mirror-arch-lastsync.sh | |
| parent | 13eb2d51c7284472efabc278bf9b7ec0b8575e47 (diff) | |
Diffstat (limited to 'mirror-arch-lastsync.sh')
| -rwxr-xr-x | mirror-arch-lastsync.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mirror-arch-lastsync.sh b/mirror-arch-lastsync.sh new file mode 100755 index 0000000..aa5c55e --- /dev/null +++ b/mirror-arch-lastsync.sh @@ -0,0 +1,7 @@ +#!/bin/bash +LOG="/var/log/mirrors/arch-lastsync.log" +LOCK="/var/lock/arch-lastsync.lock" + +# Keep it lightweight, no jitter (it just updates lastsync) +exec flock -n "$LOCK" \ + /usr/local/sbin/arch-lastsync.sh >> "$LOG" 2>&1 |
