Restart the service when the systemd unit changes
This commit is contained in:
parent
44faa1a8df
commit
902a013dca
@ -100,6 +100,7 @@ file "/lib/systemd/system/ejabberd.service" do
|
||||
content lazy { IO.read("/opt/ejabberd-#{ejabberd_version}/bin/ejabberd.service") }
|
||||
action :nothing
|
||||
notifies :run, "execute[systemctl daemon-reload]", :immediately
|
||||
notifies :restart, "service[ejabberd]", :delayed
|
||||
end
|
||||
|
||||
execute "systemctl daemon-reload" do
|
||||
|
Loading…
x
Reference in New Issue
Block a user