action :create do
systemd_service service_name do
+ after "network-online.target"
+ wants "network-online.target"
description "Prometheus #{new_resource.exporter} exporter"
type "simple"
user new_resource.user
end
def service_exists?
- File.exist?("/etc/systemd/system/#{service_name}.service")
+ ::File.exist?("/etc/systemd/system/#{service_name}.service")
end
def executable_path