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 @private_tmp -%>
109 PrivateTmp=<%= @private_tmp %>
111 <% if @private_devices -%>
112 PrivateDevices=<%= @private_devices %>
114 <% if @private_network -%>
115 PrivateNetwork=<%= @private_network %>
117 <% if @protect_system -%>
118 ProtectSystem=<%= @protect_system %>
120 <% if @protect_home -%>
121 ProtectHome=<%= @protect_home %>
123 <% if @read_write_paths -%>
124 ReadWritePaths=<%= Array(@read_write_paths).join(" ") %>
126 <% if @read_only_paths -%>
127 ReadOnlyPaths=<%= Array(@read_only_paths).join(" ") %>
129 <% if @inaccessible_paths -%>
130 InaccessiblePaths=<%= Array(@inaccessible_paths).join(" ") %>
132 <% if @restrict_address_families -%>
133 RestrictAddressFamilies=<%= Array(@restrict_address_families).join(" ") %>
135 <% if @no_new_privileges -%>
136 NoNewPrivileges=<%= @no_new_privileges %>
139 TasksMax=<%= @tasks_max %>
141 <% if @success_exit_status -%>
142 SuccessExitStatus=<%= Array(@success_exit_status).join(" ") %>
145 Restart=<%= @restart %>
147 <% if @timeout_sec -%>
148 TimeoutSec=<%= @timeout_sec %>
151 PIDFile=<%= @pid_file %>
156 <% if @io_scheduling_class -%>
157 IOSchedulingClass=<%= @io_scheduling_class %>
159 <% if @io_scheduling_priority -%>
160 IOSchedulingPriority=<%= @io_scheduling_priority %>
163 KillMode=<%= @kill_mode %>
165 <% unless @dropin -%>
168 WantedBy=multi-user.target