- action [:enable, :start]
- subscribes :restart, "systemd_service[#{new_resource.service}]"
+ action :enable
+ subscribes :restart, "systemd_service[#{new_resource.service}]", :immediately
+ end
+
+ # Ensure the service is started if not running, replies on status of service resource
+ notify_group new_resource.service do
+ action :run
+ notifies :start, "service[#{new_resource.service}]", :immediately