[fix] Start socket and stop rspamd/rmilter services in conf_regen (bugfix #196)

This commit is contained in:
Jérôme Lebleu 2016-02-21 17:58:08 +01:00
parent db7fb0c3f9
commit 3eea7bcb48
2 changed files with 7 additions and 3 deletions

View file

@ -37,7 +37,8 @@ for domain in $domain_list; do
sudo chmod 400 /etc/dkim/$domain.mail.key
done
# Reload systemd daemon and stop rmilter service to take into account the
# new configuration. It will be started again by the socket as needed.
# Reload systemd daemon, ensure that the socket is listening and stop
# the service. It will be started again by the socket as needed.
sudo systemctl daemon-reload
sudo systemctl start rmilter.socket
sudo systemctl stop rmilter.service 2>&1 || true

View file

@ -24,5 +24,8 @@ sudo sievec /etc/dovecot/global_script/rspamd.sieve
sudo chmod 660 /etc/dovecot/global_script/rspamd.svbin
sudo chown -R vmail:mail /etc/dovecot/global_script
sudo systemctl restart rspamd.socket
# Ensure that the socket is listening and stop the service.
sudo systemctl start rspamd.socket
sudo systemctl stop rspamd.service 2>&1 || true
sudo systemctl restart dovecot