Restart ejabberd service when changing a vhost config
I have ran into an issue, changes to the LDAP config for a host are
currently only loaded on startup, not on reload
https://github.com/processone/ejabberd/issues/3181
This should be fixed once
b39a1e2d74
is part of the next release
This commit is contained in:
parent
081222b75c
commit
6cd0fa039e
@ -138,7 +138,13 @@ hosts.each do |host|
|
||||
ldap_server: ldap_domain,
|
||||
ldap_rootdn: ldap_rootdn,
|
||||
ldap_encryption_type: ldap_encryption_type
|
||||
notifies :run, "execute[ejabberdctl reload_config]", :delayed
|
||||
# Restarting the service is needed because the LDAP options are only parsed
|
||||
# on start (https://github.com/processone/ejabberd/issues/3181#issuecomment-594482546)
|
||||
# This can be changed back to reloading when this is part of a release:
|
||||
# https://github.com/processone/ejabberd/commit/b39a1e2d74cd4d400a7f062e31056057573298e8
|
||||
#
|
||||
# notifies :run, "execute[ejabberdctl reload_config]", :delayed
|
||||
notifies :restart, "service[ejabberd]", :delayed
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user