v1.5 add queueCleanerScriptInterval
This commit is contained in:
parent
66ff13884c
commit
a2ad715f06
1 changed files with 7 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/with-contenv bash
|
||||
scriptVersion="1.4"
|
||||
scriptVersion="1.5"
|
||||
scriptName="QueueCleaner"
|
||||
|
||||
log () {
|
||||
|
@ -16,6 +16,10 @@ verifyConfig () {
|
|||
log "Sleeping (infinity)"
|
||||
sleep infinity
|
||||
fi
|
||||
|
||||
if [ -z "$queueCleanerScriptInterval" ]; then
|
||||
queueCleanerScriptInterval="15m"
|
||||
fi
|
||||
}
|
||||
|
||||
logfileSetup () {
|
||||
|
@ -124,8 +128,8 @@ for (( ; ; )); do
|
|||
verifyConfig
|
||||
log "Starting..."
|
||||
QueueCleanerProcess
|
||||
log "Sleeping 15m..."
|
||||
sleep 15m
|
||||
log "Sleeping $queueCleanerScriptInterval..."
|
||||
sleep $queueCleanerScriptInterval
|
||||
done
|
||||
|
||||
exit
|
||||
|
|
Loading…
Reference in a new issue