1
0
mirror of https://github.com/docker-mailserver/docker-mailserver.git synced 2025-08-07 23:03:10 +02:00

feat: Configurable poll rate for check-for-changes.sh (#4450)

Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
Co-authored-by: Casper <casperklein@users.noreply.github.com>
This commit is contained in:
litetex
2025-04-23 18:43:41 +02:00
committed by GitHub
parent b653d9a586
commit f2e5891b16
4 changed files with 24 additions and 1 deletions

View File

@ -211,7 +211,7 @@ function _rspamd_changes() {
while true; do
_check_for_changes
sleep 2
sleep "${DMS_CONFIG_POLL:-2}"
done
exit 0

View File

@ -149,6 +149,7 @@ function __environment_variables_general_setup() {
_log 'trace' 'Setting miscellaneous environment variables'
VARS[ACCOUNT_PROVISIONER]="${ACCOUNT_PROVISIONER:=FILE}"
VARS[DMS_CONFIG_POLL]="${DMS_CONFIG_POLL:=2}"
VARS[FETCHMAIL_PARALLEL]="${FETCHMAIL_PARALLEL:=0}"
VARS[FETCHMAIL_POLL]="${FETCHMAIL_POLL:=300}"
VARS[GETMAIL_POLL]="${GETMAIL_POLL:=5}"