diff --git a/universal/services/QueueCleaner b/universal/services/QueueCleaner index d5f45f6..d5ea771 100644 --- a/universal/services/QueueCleaner +++ b/universal/services/QueueCleaner @@ -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