X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/9f13c244211f5683f232f7cc32fac53be8d0b3ec..a661370166bbac0bbe8c8b1f0ba947e3a269edee:/cookbooks/systemd/resources/service.rb?ds=sidebyside diff --git a/cookbooks/systemd/resources/service.rb b/cookbooks/systemd/resources/service.rb index 8ef7dcdbb..5488cc2bf 100644 --- a/cookbooks/systemd/resources/service.rb +++ b/cookbooks/systemd/resources/service.rb @@ -38,6 +38,7 @@ property :exec_reload, String property :restart, String, :is => %w(on-success on-failure on-abnormal on-watchdog on-abort always) property :timeout_sec, Fixnum +property :pid_file, String action :create do template "/etc/systemd/system/#{name}.service" do @@ -45,7 +46,7 @@ action :create do source "service.erb" owner "root" group "root" - mode 0644 + mode 0o644 variables new_resource.to_hash end