Bastian Blank pushed to branch lockfile at Debian FTP Team / dak
Commits:
-
30954884
by Bastian Blank at 2018-04-15T16:32:42+02:00
-
04a70bee
by Bastian Blank at 2018-04-15T16:33:52+02:00
3 changed files:
- config/debian-security/weekly.functions
- config/debian-security/weekly.tasks
- config/debian/monthly.functions
Changes:
1 | 1 |
# -*- mode:sh -*-
|
2 | 2 |
|
3 |
-function precronscript() {
|
|
4 |
- # only run one cron.unchecked
|
|
5 |
- if ! lockfile -r8 ${LOCK_UNCHECKED} 2> /dev/null; then
|
|
6 |
- # log "aborting cron.unchecked because $LOCK_UNCHECKED has already been locked"
|
|
7 |
- exit 0
|
|
8 |
- fi
|
|
9 |
- TMPFILES="${TMPFILES} ${LOCK_UNCHECKED}"
|
|
10 |
-}
|
|
11 |
- |
|
12 | 3 |
function update_releases() {
|
13 | 4 |
# Update Release for main archive
|
14 | 5 |
dak generate-releases -a security >/dev/null
|
1 |
-# FUNC ARGS TIME ERR BG
|
|
2 |
-update_releases none none true false
|
|
3 |
-runcronscript mirror none true true
|
|
4 |
-linkmorgue none none false true
|
|
1 |
+# FUNC ARGS TIME ERR BG
|
|
2 |
+LOCK UNCHECKED 1200 exclusive false
|
|
3 |
+update_releases none none true false
|
|
4 |
+runcronscript mirror none true true
|
|
5 |
+linkmorgue none none false true
|
... | ... | @@ -25,7 +25,6 @@ function archivequeuedone() { |
25 | 25 |
}
|
26 | 26 |
|
27 | 27 |
function rotatereports() {
|
28 |
- TMPFILES="${TMPFILES} ${LOCK_UNCHECKED}"
|
|
29 | 28 |
for dir in ${queuedir}/{.,p-u-new,o-p-u-new} /srv/backports-master.debian.org/queue/policy; do
|
30 | 29 |
cd ${dir}
|
31 | 30 |
mv REPORT REPORT.${OLDDATE}
|