X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/e2d9c76e0d9a32f82f45b7a3d98199eb18405351..a661370166bbac0bbe8c8b1f0ba947e3a269edee:/cookbooks/systemd/resources/service.rb diff --git a/cookbooks/systemd/resources/service.rb b/cookbooks/systemd/resources/service.rb index e6fba41b5..5488cc2bf 100644 --- a/cookbooks/systemd/resources/service.rb +++ b/cookbooks/systemd/resources/service.rb @@ -28,6 +28,8 @@ property :type, String, property :limit_nofile, Fixnum property :environment, Hash, :default => {} property :environment_file, String +property :user, String +property :group, String property :exec_start_pre, String property :exec_start, String, :required => true property :exec_start_post, String @@ -36,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 @@ -43,7 +46,7 @@ action :create do source "service.erb" owner "root" group "root" - mode 0644 + mode 0o644 variables new_resource.to_hash end