Reload ejabberd when the config file changes

This commit is contained in:
Greg 2019-01-10 16:47:58 +01:00
parent 70c4419c2a
commit aa64456fc7
1 changed files with 6 additions and 0 deletions

View File

@ -59,6 +59,12 @@ template "/opt/ejabberd/conf/ejabberd.yml" do
mode 0640
sensitive true
variables pgsql_password: "super_secret"
notifies :run, "execute[ejabberdctl reload_config]", :delayed
end
execute "ejabberdctl reload_config" do
command "/opt/ejabberd-18.12.1/bin/ejabberdctl reload_config"
action :nothing
end
file "/etc/init.d/ejabberd" do