2 Description=<%= @description %>
4 After=<%= Array(@after).join(" ") %>
9 <% if @limit_nofile -%>
10 LimitNOFILE=<%= @limit_nofile %>
12 <% @environment.each do |name,value| -%>
13 Environment="<%= name %>=<%= value %>"
15 <% if @environment_file -%>
16 EnvironmentFile=<%= @environment_file %>
18 <% if @exec_start_pre -%>
19 ExecStartPre=<%= @exec_start_pre %>
21 ExecStart=<%= @exec_start %>
22 <% if @exec_start_post -%>
23 ExecStartPost=<%= @exec_start_post %>
26 ExecStop=<%= @exec_stop %>
28 <% if @exec_reload -%>
29 ExecReload=<%= @exec_reload %>
32 Restart=<%= @restart %>
34 <% if @timeout_sec -%>
35 TimeoutSec=<%= @timeout_sec %>
39 WantedBy=multi-user.target