]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/systemd/resources/service.rb
Make renderd run as a native systemd service
[chef.git] / cookbooks / systemd / resources / service.rb
index 5488cc2bfddfda2c2e53cdfe9fe47c791e970b12..6221441018593e8eb04ee5add96ac10804caaec3 100644 (file)
@@ -22,6 +22,7 @@ default_action :create
 property :name, String
 property :description, String, :required => true
 property :after, [String, Array]
+property :wants, [String, Array]
 property :type, String,
          :default => "simple",
          :is => %w(simple forking oneshot dbus notify idle)
@@ -35,8 +36,19 @@ property :exec_start, String, :required => true
 property :exec_start_post, String
 property :exec_stop, String
 property :exec_reload, String
+property :standard_input, String,
+         :is => %w(null tty tty-force tty-fail socket)
+property :standard_output, String,
+         :is => %w(inherit null tty journal syslog kmsg journal+console syslog+console kmsg+console socket)
+property :standard_error, String,
+         :is => %w(inherit null tty journal syslog kmsg journal+console syslog+console kmsg+console socket)
 property :restart, String,
          :is => %w(on-success on-failure on-abnormal on-watchdog on-abort always)
+property :private_tmp, [TrueClass, FalseClass]
+property :private_devices, [TrueClass, FalseClass]
+property :private_network, [TrueClass, FalseClass]
+property :protect_system, [TrueClass, FalseClass, String]
+property :protect_home, [TrueClass, FalseClass, String]
 property :timeout_sec, Fixnum
 property :pid_file, String