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
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
source "service.erb"
owner "root"
group "root"
- mode 0644
+ mode 0o644
variables new_resource.to_hash
end