]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/systemd/resources/service.rb
docker: Add old image/container cleanup service
[chef.git] / cookbooks / systemd / resources / service.rb
index 313c80c118c4b50433d9d0a61b897830fa5bd86c..94d0217c637be35b04011eb0a9ae7be0c4e47604 100644 (file)
@@ -41,9 +41,9 @@ property :environment_file, [String, Hash]
 property :user, String
 property :group, String
 property :working_directory, String
-property :exec_start_pre, String
-property :exec_start, String
-property :exec_start_post, String
+property :exec_start_pre, [String, Array]
+property :exec_start, [String, Array]
+property :exec_start_post, [String, Array]
 property :exec_stop, String
 property :exec_reload, String
 property :runtime_directory, String
@@ -127,7 +127,7 @@ action :create do
     service_variables[:protect_kernel_modules] = true unless property_is_set?(:protect_kernel_modules)
     service_variables[:protect_kernel_logs] = true unless property_is_set?(:protect_kernel_logs)
     service_variables[:protect_control_groups] = true unless property_is_set?(:protect_control_groups)
-    service_variables[:restrict_address_families] = "none" unless property_is_set?(:restrict_address_families)
+    service_variables[:restrict_address_families] = [] unless property_is_set?(:restrict_address_families)
     service_variables[:restrict_namespaces] = true unless property_is_set?(:restrict_namespaces)
     service_variables[:lock_personality] = true unless property_is_set?(:lock_personality)
     service_variables[:memory_deny_write_execute] = true unless property_is_set?(:memory_deny_write_execute)