Restart ejabberd service when changing a vhost config #142
| @ -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