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
|
mode 0640
|
||||||
sensitive true
|
sensitive true
|
||||||
variables pgsql_password: "super_secret"
|
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
|
end
|
||||||
|
|
||||||
file "/etc/init.d/ejabberd" do
|
file "/etc/init.d/ejabberd" do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user