1 # DO NOT EDIT - This file is being maintained by Chef
 
   5 Description=<%= @description %>
 
   7 <% if @condition_path_exists -%>
 
   8 ConditionPathExists=<%= Array(@condition_path_exists).join(" ") %>
 
  10 <% if @condition_path_exists_glob -%>
 
  11 ConditionPathExistsGlob=<%= Array(@condition_path_exists_glob).join(" ") %>
 
  14 After=<%= Array(@after).join(" ") %>
 
  17 Conflicts=<%= Array(@conflicts).join(" ") %>
 
  20 Wants=<%= Array(@wants).join(" ") %>
 
  22 <% if @joins_namespace_of -%>
 
  23 JoinsNamespaceOf=<%= Array(@joins_namespace_of).join(" ") %>
 
  30 <% if @limit_nofile -%>
 
  31 LimitNOFILE=<%= @limit_nofile %>
 
  34 LimitAS=<%= @limit_as %>
 
  37 LimitCPU=<%= @limit_cpu %>
 
  40 MemoryLow=<%= @memory_low %>
 
  42 <% if @memory_high -%>
 
  43 MemoryHigh=<%= @memory_high %>
 
  46 MemoryMax=<%= @memory_max %>
 
  48 <% @environment.each do |name,value| -%>
 
  49 Environment="<%= name %>=<%= value %>"
 
  51 <% if @environment_file -%>
 
  52 EnvironmentFile=<%= @environment_file %>
 
  60 <% if @dynamic_user -%>
 
  61 DynamicUser=<%= @dynamic_user %>
 
  63 <% if @working_directory -%>
 
  64 WorkingDirectory=<%= @working_directory %>
 
  66 <% if @exec_start_pre -%>
 
  70 <% Array(@exec_start_pre).each do |exec_start_pre| -%>
 
  71 ExecStartPre=<%= exec_start_pre %>
 
  78 <% Array(@exec_start).each do |exec_start| -%>
 
  79 ExecStart=<%= exec_start %>
 
  82 <% if @exec_start_post -%>
 
  86 <% Array(@exec_start_post).each do |exec_start_post| -%>
 
  87 ExecStartPost=<%= exec_start_post %>
 
  94 ExecStop=<%= @exec_stop %>
 
  96 <% if @exec_reload -%>
 
 100 ExecReload=<%= @exec_reload %>
 
 102 <% if @runtime_directory -%>
 
 103 RuntimeDirectory=<%= @runtime_directory %>
 
 105 <% if @runtime_directory_mode -%>
 
 106 RuntimeDirectoryMode=<%= sprintf("0%o", @runtime_directory_mode) %>
 
 108 <% if @runtime_max_sec -%>
 
 109 RuntimeMaxSec=<%= @runtime_max_sec %>
 
 111 <% if @standard_input -%>
 
 112 StandardInput=<%= @standard_input %>
 
 114 <% if @standard_output -%>
 
 115 StandardOutput=<%= @standard_output %>
 
 117 <% if @standard_error -%>
 
 118 StandardError=<%= @standard_error %>
 
 120 <% if @protect_proc && node[:lsb][:release].to_f >= 22.04  -%>
 
 121 ProtectProc=<%= @protect_proc %>
 
 123 <% if @proc_subset && node[:lsb][:release].to_f >= 22.04 -%>
 
 124 ProcSubset=<%= @proc_subset %>
 
 126 <% if @no_new_privileges -%>
 
 127 NoNewPrivileges=<%= @no_new_privileges %>
 
 129 <% if @capability_bounding_set -%>
 
 130 CapabilityBoundingSet=<%= Array(@capability_bounding_set).sort.uniq.join(" ") %>
 
 132 <% if @protect_system -%>
 
 133 ProtectSystem=<%= @protect_system %>
 
 135 <% if @protect_home -%>
 
 136 ProtectHome=<%= @protect_home %>
 
 138 <% if @read_write_paths -%>
 
 139 ReadWritePaths=<%= Array(@read_write_paths).sort.uniq.join(" ") %>
 
 141 <% if @read_only_paths -%>
 
 142 ReadOnlyPaths=<%= Array(@read_only_paths).sort.uniq.join(" ") %>
 
 144 <% if @inaccessible_paths -%>
 
 145 InaccessiblePaths=<%= Array(@inaccessible_paths).sort.uniq.join(" ") %>
 
 147 <% if @private_tmp -%>
 
 148 PrivateTmp=<%= @private_tmp %>
 
 150 <% if @private_devices -%>
 
 151 PrivateDevices=<%= @private_devices %>
 
 153 <% if @private_network -%>
 
 154 PrivateNetwork=<%= @private_network %>
 
 156 <% if @private_ipc && node[:lsb][:release].to_f >= 22.04 -%>
 
 157 PrivateIPC=<%= @private_ipc %>
 
 159 <% if @private_users -%>
 
 160 PrivateUsers=<%= @private_users %>
 
 162 <% if @protect_hostname -%>
 
 163 ProtectHostname=<%= @protect_hostname %>
 
 165 <% if @protect_clock -%>
 
 166 ProtectClock=<%= @protect_clock %>
 
 168 <% if @protect_kernel_tunables -%>
 
 169 ProtectKernelTunables=<%= @protect_kernel_tunables %>
 
 171 <% if @protect_kernel_modules -%>
 
 172 ProtectKernelModules=<%= @protect_kernel_modules %>
 
 174 <% if @protect_kernel_logs -%>
 
 175 ProtectKernelLogs=<%= @protect_kernel_logs %>
 
 177 <% if @protect_control_groups -%>
 
 178 ProtectControlGroups=<%= @protect_control_groups %>
 
 180 <% if @restrict_address_families -%>
 
 181 RestrictAddressFamilies=<%= Array(@restrict_address_families).sort.uniq.join(" ") %>
 
 183 <% if @restrict_namespaces -%>
 
 184 RestrictNamespaces=<%= Array(@restrict_namespaces).sort.uniq.join(" ") %>
 
 186 <% if @lock_personality -%>
 
 187 LockPersonality=<%= @lock_personality %>
 
 189 <% if @memory_deny_write_execute -%>
 
 190 MemoryDenyWriteExecute=<%= @memory_deny_write_execute %>
 
 192 <% if @restrict_realtime -%>
 
 193 RestrictRealtime=<%= @restrict_realtime %>
 
 195 <% if @restrict_suid_sgid -%>
 
 196 RestrictSUIDSGID=<%= @restrict_suid_sgid %>
 
 198 <% if @remove_ipc -%>
 
 199 RemoveIPC=<%= @remove_ipc %>
 
 201 <% if @system_call_filter -%>
 
 202 SystemCallFilter=<%= Array(@system_call_filter).join(" ") %>
 
 204 <% if @system_call_architectures -%>
 
 205 SystemCallArchitectures=<%= Array(@system_call_architectures).sort.uniq.join(" ") %>
 
 208 TasksMax=<%= @tasks_max %>
 
 210 <% if @success_exit_status -%>
 
 211 SuccessExitStatus=<%= Array(@success_exit_status).join(" ") %>
 
 214 Restart=<%= @restart %>
 
 216 <% if @timeout_start_sec -%>
 
 217 TimeoutStartSec=<%= @timeout_start_sec %>
 
 219 <% if @timeout_stop_sec -%>
 
 220 TimeoutStopSec=<%= @timeout_stop_sec %>
 
 222 <% if @timeout_abort_sec -%>
 
 223 TimeoutAbortSec=<%= @timeout_abort_sec %>
 
 225 <% if @timeout_sec -%>
 
 226 TimeoutSec=<%= @timeout_sec %>
 
 229 PIDFile=<%= @pid_file %>
 
 234 <% if @io_scheduling_class -%>
 
 235 IOSchedulingClass=<%= @io_scheduling_class %>
 
 237 <% if @io_scheduling_priority -%>
 
 238 IOSchedulingPriority=<%= @io_scheduling_priority %>
 
 241 KillMode=<%= @kill_mode %>
 
 243 <% unless @dropin -%>
 
 246 WantedBy=multi-user.target