3 # repod - Perform Girocco maintenance jobs
5 # repod is Girocco repositories maintenance servant; it periodically
6 # checks all the repositories and updates mirrored repositories and
7 # repacks push-repositories when needed.
13 if [ -e /tmp
/repod.lock
]; then
14 echo "Locked! Stale /tmp/repod.lock?" >&2
17 echo $$
>/tmp
/repod.lock
18 trap "rm /tmp/repod.lock" SIGINT SIGTERM EXIT
21 ## Single-project routine
26 if [ ! -e "$proj.git"/.nofetch
]; then
27 "$cfg_basedir"/mirroring
/update.sh
"$proj"
29 "$cfg_basedir"/jobs
/gc.sh
"$proj" 2>&1 |
grep -v '^Pack.*created\.$'
37 get_repo_list |
while read proj
; do
38 check_one_proj
"$proj"