1 # DO NOT EDIT - This file is being maintained by Chef
5 Description=<%= @description %>
8 After=<%= Array(@after).join(" ") %>
11 Wants=<%= Array(@wants).join(" ") %>
18 <% if @limit_nofile -%>
19 LimitNOFILE=<%= @limit_nofile %>
22 LimitAS=<%= @limit_as %>
25 LimitCPU=<%= @limit_cpu %>
28 MemoryLow=<%= @memory_low %>
30 <% if @memory_high -%>
31 MemoryHigh=<%= @memory_high %>
34 MemoryMax=<%= @memory_max %>
36 <% @environment.each do |name,value| -%>
37 Environment="<%= name %>=<%= value %>"
39 <% if @environment_file -%>
40 EnvironmentFile=<%= @environment_file %>
48 <% if @working_directory -%>
49 WorkingDirectory=<%= @working_directory %>
51 <% if @exec_start_pre -%>
55 ExecStartPre=<%= @exec_start_pre %>
61 ExecStart=<%= @exec_start %>
63 <% if @exec_start_post -%>
67 ExecStartPost=<%= @exec_start_post %>
73 ExecStop=<%= @exec_stop %>
75 <% if @exec_reload -%>
79 ExecReload=<%= @exec_reload %>
81 <% if @runtime_directory -%>
82 RuntimeDirectory=<%= @runtime_directory %>
84 <% if @runtime_directory_mode -%>
85 RuntimeDirectoryMode=<%= sprintf("0%o", @runtime_directory_mode) %>
87 <% if @standard_input -%>
88 StandardInput=<%= @standard_input %>
90 <% if @standard_output -%>
91 StandardOutput=<%= @standard_output %>
93 <% if @standard_error -%>
94 StandardError=<%= @standard_error %>
96 <% if @private_tmp -%>
97 PrivateTmp=<%= @private_tmp %>
99 <% if @private_devices -%>
100 PrivateDevices=<%= @private_devices %>
102 <% if @private_network -%>
103 PrivateNetwork=<%= @private_network %>
105 <% if @protect_system -%>
106 ProtectSystem=<%= @protect_system %>
108 <% if @protect_home -%>
109 ProtectHome=<%= @protect_home %>
111 <% if @read_write_paths -%>
112 ReadWritePaths=<%= Array(@read_write_paths).join(" ") %>
114 <% if @read_only_paths -%>
115 ReadOnlyPaths=<%= Array(@read_only_paths).join(" ") %>
117 <% if @inaccessible_paths -%>
118 InaccessiblePaths=<%= Array(@inaccessible_paths).join(" ") %>
120 <% if @restrict_address_families -%>
121 RestrictAddressFamilies=<%= Array(@restrict_address_families).join(" ") %>
123 <% if @no_new_privileges -%>
124 NoNewPrivileges=<%= @no_new_privileges %>
127 TasksMax=<%= @tasks_max %>
129 <% if @success_exit_status -%>
130 SuccessExitStatus=<%= Array(@success_exit_status).join(" ") %>
133 Restart=<%= @restart %>
135 <% if @timeout_sec -%>
136 TimeoutSec=<%= @timeout_sec %>
139 PIDFile=<%= @pid_file %>
144 <% if @io_scheduling_class -%>
145 IOSchedulingClass=<%= @io_scheduling_class %>
147 <% if @io_scheduling_priority -%>
148 IOSchedulingPriority=<%= @io_scheduling_priority %>
151 KillMode=<%= @kill_mode %>
153 <% unless @dropin -%>
156 WantedBy=multi-user.target