mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Start socket and stop rspamd/rmilter services in conf_regen (bugfix #196)
This commit is contained in:
parent
db7fb0c3f9
commit
3eea7bcb48
2 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue