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(" ") %>
27 <% if @limit_nofile -%>
28 LimitNOFILE=<%= @limit_nofile %>
31 LimitAS=<%= @limit_as %>
34 LimitCPU=<%= @limit_cpu %>
37 MemoryLow=<%= @memory_low %>
39 <% if @memory_high -%>
40 MemoryHigh=<%= @memory_high %>
43 MemoryMax=<%= @memory_max %>
45 <% @environment.each do |name,value| -%>
46 Environment="<%= name %>=<%= value %>"
48 <% if @environment_file -%>
49 EnvironmentFile=<%= @environment_file %>
57 <% if @working_directory -%>
58 WorkingDirectory=<%= @working_directory %>
60 <% if @exec_start_pre -%>
64 <% Array(@exec_start_pre).each do |exec_start_pre| -%>
65 ExecStartPre=<%= exec_start_pre %>
72 <% Array(@exec_start).each do |exec_start| -%>
73 ExecStart=<%= exec_start %>
76 <% if @exec_start_post -%>
80 <% Array(@exec_start_post).each do |exec_start_post| -%>
81 ExecStartPost=<%= exec_start_post %>
88 ExecStop=<%= @exec_stop %>
90 <% if @exec_reload -%>
94 ExecReload=<%= @exec_reload %>
96 <% if @runtime_directory -%>
97 RuntimeDirectory=<%= @runtime_directory %>
99 <% if @runtime_directory_mode -%>
100 RuntimeDirectoryMode=<%= sprintf("0%o", @runtime_directory_mode) %>
102 <% if @runtime_max_sec -%>
103 RuntimeMaxSec=<%= @runtime_max_sec %>
105 <% if @standard_input -%>
106 StandardInput=<%= @standard_input %>
108 <% if @standard_output -%>
109 StandardOutput=<%= @standard_output %>
111 <% if @standard_error -%>
112 StandardError=<%= @standard_error %>
114 <% if @protect_proc -%>
115 ProtectProc=<%= @protect_proc %>
117 <% if @proc_subset -%>
118 ProcSubset=<%= @proc_subset %>
120 <% if @no_new_privileges -%>
121 NoNewPrivileges=<%= @no_new_privileges %>
123 <% if @capability_bounding_set -%>
124 CapabilityBoundingSet=<%= Array(@capability_bounding_set).sort.uniq.join(" ") %>
126 <% if @protect_system -%>
127 ProtectSystem=<%= @protect_system %>
129 <% if @protect_home -%>
130 ProtectHome=<%= @protect_home %>
132 <% if @read_write_paths -%>
133 ReadWritePaths=<%= Array(@read_write_paths).sort.uniq.join(" ") %>
135 <% if @read_only_paths -%>
136 ReadOnlyPaths=<%= Array(@read_only_paths).sort.uniq.join(" ") %>
138 <% if @inaccessible_paths -%>
139 InaccessiblePaths=<%= Array(@inaccessible_paths).sort.uniq.join(" ") %>
141 <% if @private_tmp -%>
142 PrivateTmp=<%= @private_tmp %>
144 <% if @private_devices -%>
145 PrivateDevices=<%= @private_devices %>
147 <% if @private_network -%>
148 PrivateNetwork=<%= @private_network %>
150 <% if @private_ipc -%>
151 PrivateIPC=<%= @private_ipc %>
153 <% if @private_users -%>
154 PrivateUsers=<%= @private_users %>
156 <% if @protect_hostname -%>
157 ProtectHostname=<%= @protect_hostname %>
159 <% if @protect_clock -%>
160 ProtectClock=<%= @protect_clock %>
162 <% if @protect_kernel_tunables -%>
163 ProtectKernelTunables=<%= @protect_kernel_tunables %>
165 <% if @protect_kernel_modules -%>
166 ProtectKernelModules=<%= @protect_kernel_modules %>
168 <% if @protect_kernel_logs -%>
169 ProtectKernelLogs=<%= @protect_kernel_logs %>
171 <% if @protect_control_groups -%>
172 ProtectControlGroups=<%= @protect_control_groups %>
174 <% if @restrict_address_families -%>
175 RestrictAddressFamilies=<%= Array(@restrict_address_families).sort.uniq.join(" ") %>
177 <% if @restrict_namespaces -%>
178 RestrictNamespaces=<%= Array(@restrict_namespaces).sort.uniq.join(" ") %>
180 <% if @lock_personality -%>
181 LockPersonality=<%= @lock_personality %>
183 <% if @memory_deny_write_execute -%>
184 MemoryDenyWriteExecute=<%= @memory_deny_write_execute %>
186 <% if @restrict_realtime -%>
187 RestrictRealtime=<%= @restrict_realtime %>
189 <% if @restrict_suid_sgid -%>
190 RestrictSUIDSGID=<%= @restrict_suid_sgid %>
192 <% if @remove_ipc -%>
193 RemoveIPC=<%= @remove_ipc %>
195 <% if @system_call_filter -%>
196 SystemCallFilter=<%= Array(@system_call_filter).join(" ") %>
198 <% if @system_call_architectures -%>
199 SystemCallArchitectures=<%= Array(@system_call_architectures).sort.uniq.join(" ") %>
202 TasksMax=<%= @tasks_max %>
204 <% if @success_exit_status -%>
205 SuccessExitStatus=<%= Array(@success_exit_status).join(" ") %>
208 Restart=<%= @restart %>
210 <% if @timeout_start_sec -%>
211 TimeoutStartSec=<%= @timeout_start_sec %>
213 <% if @timeout_stop_sec -%>
214 TimeoutStopSec=<%= @timeout_stop_sec %>
216 <% if @timeout_abort_sec -%>
217 TimeoutAbortSec=<%= @timeout_abort_sec %>
219 <% if @timeout_sec -%>
220 TimeoutSec=<%= @timeout_sec %>
223 PIDFile=<%= @pid_file %>
228 <% if @io_scheduling_class -%>
229 IOSchedulingClass=<%= @io_scheduling_class %>
231 <% if @io_scheduling_priority -%>
232 IOSchedulingPriority=<%= @io_scheduling_priority %>
235 KillMode=<%= @kill_mode %>
237 <% unless @dropin -%>
240 WantedBy=multi-user.target