]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/systemd/resources/service.rb
Fix rubocop warnings
[chef.git] / cookbooks / systemd / resources / service.rb
index e6fba41b514779d07733d8a0ce1cd37d71d44626..5488cc2bfddfda2c2e53cdfe9fe47c791e970b12 100644 (file)
@@ -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