Reload ejabberd when the config file changes
This commit is contained in:
parent
70c4419c2a
commit
aa64456fc7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue