mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-07-23 12:16:01 +02:00
scripts: housekeeping & cleanup setup (2/2) (#3123)
This commit is contained in:
parent
9ead9a54ac
commit
dfc2b39308
8 changed files with 152 additions and 160 deletions
|
@ -28,22 +28,25 @@ function _default_start_daemon
|
|||
# shellcheck disable=SC2181
|
||||
if [[ ${?} -ne 0 ]]
|
||||
then
|
||||
echo "${RESULT}" >&2
|
||||
_log 'error' "${RESULT}"
|
||||
dms_panic__fail_init "${1}"
|
||||
fi
|
||||
}
|
||||
|
||||
function _start_daemon_changedetector { _default_start_daemon 'changedetector' ; }
|
||||
function _start_daemon_amavis { _default_start_daemon 'amavis' ; }
|
||||
function _start_daemon_changedetector { _default_start_daemon 'changedetector' ; }
|
||||
function _start_daemon_clamav { _default_start_daemon 'clamav' ; }
|
||||
function _start_daemon_cron { _default_start_daemon 'cron' ; }
|
||||
function _start_daemon_dovecot { _default_start_daemon 'dovecot' ; }
|
||||
function _start_daemon_fail2ban { _default_start_daemon 'fail2ban' ; }
|
||||
function _start_daemon_opendkim { _default_start_daemon 'opendkim' ; }
|
||||
function _start_daemon_opendmarc { _default_start_daemon 'opendmarc' ; }
|
||||
function _start_daemon_postgrey { _default_start_daemon 'postgrey' ; }
|
||||
function _start_daemon_postsrsd { _default_start_daemon 'postsrsd' ; }
|
||||
function _start_daemon_redis { _default_start_daemon 'redis' ; }
|
||||
function _start_daemon_rspamd { _default_start_daemon 'rspamd' ; }
|
||||
function _start_daemon_rsyslog { _default_start_daemon 'rsyslog' ; }
|
||||
function _start_daemon_update_check { _default_start_daemon 'update-check' ; }
|
||||
function _start_daemon_rspamd { _default_start_daemon 'rspamd' ; }
|
||||
function _start_daemon_redis { _default_start_daemon 'redis' ; }
|
||||
|
||||
function _start_daemon_saslauthd
|
||||
{
|
||||
|
@ -56,30 +59,6 @@ function _start_daemon_postfix
|
|||
_default_start_daemon 'postfix'
|
||||
}
|
||||
|
||||
function _start_daemon_postgrey
|
||||
{
|
||||
rm -f /var/run/postgrey/postgrey.pid
|
||||
_default_start_daemon 'postgrey'
|
||||
}
|
||||
|
||||
function _start_daemon_fail2ban
|
||||
{
|
||||
_default_start_daemon 'fail2ban'
|
||||
}
|
||||
|
||||
function _start_daemon_dovecot
|
||||
{
|
||||
if [[ ${ENABLE_POP3} -eq 1 ]]
|
||||
then
|
||||
_log 'debug' 'Enabling POP3 services'
|
||||
mv /etc/dovecot/protocols.d/pop3d.protocol.disab /etc/dovecot/protocols.d/pop3d.protocol
|
||||
fi
|
||||
|
||||
[[ -f /tmp/docker-mailserver/dovecot.cf ]] && cp /tmp/docker-mailserver/dovecot.cf /etc/dovecot/local.conf
|
||||
|
||||
_default_start_daemon 'dovecot'
|
||||
}
|
||||
|
||||
function _start_daemon_fetchmail
|
||||
{
|
||||
if [[ ${FETCHMAIL_PARALLEL} -eq 1 ]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue