Joerg Jaspert pushed to branch lockfile at Debian FTP Team / dak
Commits:
-
fd034fb2
by Joerg Jaspert at 2018-04-12T23:45:16+02:00
-
57682c87
by Joerg Jaspert at 2018-04-12T23:46:00+02:00
-
68770bab
by Joerg Jaspert at 2018-04-12T23:46:31+02:00
4 changed files:
- config/debian-security/daily.functions
- config/debian-security/daily.tasks
- config/debian-security/unchecked-dinstall.tasks
- config/debian/dinstall.tasks
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 fix_overrides() {
|
13 | 4 |
rsync --delete -r --include=override\* --exclude=\* --password-file /srv/security-master.debian.org/s3kr1t/rsync-password -ql security-master@ftp-master::indices/ $overridedir
|
14 | 5 |
|
1 | 1 |
# FUNC ARGS TIME ERR BG
|
2 |
+# Note: Not explicitly unlocked, want it until cronscript ends, after
|
|
3 |
+# all background functions finished
|
|
4 |
+LOCK UNCHECKED 3600 false false
|
|
2 | 5 |
fix_overrides none none true true
|
3 | 6 |
fingerprints some none false true
|
4 | 7 |
dakcleanup unchecked\ disembargo none true false
|
1 | 1 |
# FUNC ARGS TIME ERR BG
|
2 | 2 |
STATE startup none false false
|
3 |
+LOCK DAILY 3600 false false
|
|
3 | 4 |
RMSTAGE none none false false
|
4 | 5 |
NOSTAGE startup none false false
|
5 | 6 |
STATE indices none false false
|
7 |
+LOCK ACCEPTED 1200 false false
|
|
6 | 8 |
dominate none dominate true false
|
7 | 9 |
mpfm none pkg-file-mapping false false
|
8 | 10 |
STATE packages/contents none true false
|
... | ... | @@ -13,3 +15,5 @@ STATE scripts none fal |
13 | 15 |
mirror none mirror\ hardlinks true false
|
14 | 16 |
STATE postlock none false false
|
15 | 17 |
mirrorpush none mirrorpush false true
|
18 |
+UNLOCK ACCEPTED none false false
|
|
19 |
+UNLOCK DAILY none false false
|
... | ... | @@ -53,4 +53,3 @@ i18n2 none i18n\ 2 fal |
53 | 53 |
stats none stats false true
|
54 | 54 |
testingsourcelist none none false true
|
55 | 55 |
cleantransactions none none false false
|
56 |
-UNLOCK CHANGELOG none false false
|