Restart the service when the systemd unit changes

This commit is contained in:
Greg Karékinian 2019-05-14 12:18:22 +02:00
parent 44faa1a8df
commit 902a013dca

View File

@ -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