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 ExecStartPre=<%= @exec_start_pre %>
70 ExecStart=<%= @exec_start %>
72 <% if @exec_start_post -%>
76 ExecStartPost=<%= @exec_start_post %>
82 ExecStop=<%= @exec_stop %>
84 <% if @exec_reload -%>
88 ExecReload=<%= @exec_reload %>
90 <% if @runtime_directory -%>
91 RuntimeDirectory=<%= @runtime_directory %>
93 <% if @runtime_directory_mode -%>
94 RuntimeDirectoryMode=<%= sprintf("0%o", @runtime_directory_mode) %>
96 <% if @runtime_max_sec -%>
97 RuntimeMaxSec=<%= @runtime_max_sec %>
99 <% if @standard_input -%>
100 StandardInput=<%= @standard_input %>
102 <% if @standard_output -%>
103 StandardOutput=<%= @standard_output %>
105 <% if @standard_error -%>
106 StandardError=<%= @standard_error %>
108 <% if @protect_proc -%>
109 ProtectProc=<%= @protect_proc %>
111 <% if @proc_subset -%>
112 ProcSubset=<%= @proc_subset %>
114 <% if @no_new_privileges -%>
115 NoNewPrivileges=<%= @no_new_privileges %>
117 <% if @capability_bounding_set -%>
118 CapabilityBoundingSet=<%= Array(@capability_bounding_set).sort.uniq.join(" ") %>
120 <% if @protect_system -%>
121 ProtectSystem=<%= @protect_system %>
123 <% if @protect_home -%>
124 ProtectHome=<%= @protect_home %>
126 <% if @read_write_paths -%>
127 ReadWritePaths=<%= Array(@read_write_paths).sort.uniq.join(" ") %>
129 <% if @read_only_paths -%>
130 ReadOnlyPaths=<%= Array(@read_only_paths).sort.uniq.join(" ") %>
132 <% if @inaccessible_paths -%>
133 InaccessiblePaths=<%= Array(@inaccessible_paths).sort.uniq.join(" ") %>
135 <% if @private_tmp -%>
136 PrivateTmp=<%= @private_tmp %>
138 <% if @private_devices -%>
139 PrivateDevices=<%= @private_devices %>
141 <% if @private_network -%>
142 PrivateNetwork=<%= @private_network %>
144 <% if @private_ipc -%>
145 PrivateIPC=<%= @private_ipc %>
147 <% if @private_users -%>
148 PrivateUsers=<%= @private_users %>
150 <% if @protect_hostname -%>
151 ProtectHostname=<%= @protect_hostname %>
153 <% if @protect_clock -%>
154 ProtectClock=<%= @protect_clock %>
156 <% if @protect_kernel_tunables -%>
157 ProtectKernelTunables=<%= @protect_kernel_tunables %>
159 <% if @protect_kernel_modules -%>
160 ProtectKernelModules=<%= @protect_kernel_modules %>
162 <% if @protect_kernel_logs -%>
163 ProtectKernelLogs=<%= @protect_kernel_logs %>
165 <% if @protect_control_groups -%>
166 ProtectControlGroups=<%= @protect_control_groups %>
168 <% if @restrict_address_families -%>
169 RestrictAddressFamilies=<%= Array(@restrict_address_families).sort.uniq.join(" ") %>
171 <% if @restrict_namespaces -%>
172 RestrictNamespaces=<%= Array(@restrict_namespaces).sort.uniq.join(" ") %>
174 <% if @lock_personality -%>
175 LockPersonality=<%= @lock_personality %>
177 <% if @memory_deny_write_execute -%>
178 MemoryDenyWriteExecute=<%= @memory_deny_write_execute %>
180 <% if @restrict_realtime -%>
181 RestrictRealtime=<%= @restrict_realtime %>
183 <% if @restrict_suid_sgid -%>
184 RestrictSUIDSGID=<%= @restrict_suid_sgid %>
186 <% if @remove_ipc -%>
187 RemoveIPC=<%= @remove_ipc %>
189 <% if @system_call_filter -%>
190 SystemCallFilter=<%= Array(@system_call_filter).join(" ") %>
192 <% if @system_call_architectures -%>
193 SystemCallArchitectures=<%= Array(@system_call_architectures).sort.uniq.join(" ") %>
196 TasksMax=<%= @tasks_max %>
198 <% if @success_exit_status -%>
199 SuccessExitStatus=<%= Array(@success_exit_status).join(" ") %>
202 Restart=<%= @restart %>
204 <% if @timeout_start_sec -%>
205 TimeoutStartSec=<%= @timeout_start_sec %>
207 <% if @timeout_stop_sec -%>
208 TimeoutStopSec=<%= @timeout_stop_sec %>
210 <% if @timeout_abort_sec -%>
211 TimeoutAbortSec=<%= @timeout_abort_sec %>
213 <% if @timeout_sec -%>
214 TimeoutSec=<%= @timeout_sec %>
217 PIDFile=<%= @pid_file %>
222 <% if @io_scheduling_class -%>
223 IOSchedulingClass=<%= @io_scheduling_class %>
225 <% if @io_scheduling_priority -%>
226 IOSchedulingPriority=<%= @io_scheduling_priority %>
229 KillMode=<%= @kill_mode %>
231 <% unless @dropin -%>
234 WantedBy=multi-user.target