3 # Executed after cron.unchecked
8 export SCRIPTVARS=/srv/security-master.debian.org/dak/config/debian-security/vars
10 SSH_SOCKET=~/.ssh/buildd.debian.org.socket
11 DISTS=$(dak admin s list)
13 if [ -e $ftpdir/Archive_Maintenance_In_Progress ]; then
19 check=$(( now - 3*60 ))
21 for dist in $DISTS; do
22 smodtime=$(stat -c "%Y" $base/buildd/$dist/Sources.gz)
23 pmodtime=$(stat -c "%Y" $base/buildd/$dist/Packages.gz)
25 if [ ${smodtime} -gt ${check} ] || [ ${pmodtime} -gt ${check} ]; then
26 # Packages/Sources changed in the last minutes
27 dists="${dists} ${dist}"
33 if [ ! -z "${dists}" ]; then
34 # setup ssh master process
35 ssh wbadm@buildd -S $SSH_SOCKET -MN 2> /dev/null &
37 while [ ! -S $SSH_SOCKET ]; do
40 trap 'kill -TERM $SSH_PID' 0
57 ssh wbadm@buildd -S $SSH_SOCKET trigger.security $send