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 -%>
52 ExecStartPre=<%= @exec_start_pre %>
55 ExecStart=<%= @exec_start %>
57 <% if @exec_start_post -%>
58 ExecStartPost=<%= @exec_start_post %>
61 ExecStop=<%= @exec_stop %>
63 <% if @exec_reload -%>
64 ExecReload=<%= @exec_reload %>
66 <% if @runtime_directory -%>
67 RuntimeDirectory=<%= @runtime_directory %>
69 <% if @runtime_directory_mode -%>
70 RuntimeDirectoryMode=<%= sprintf("0%o", @runtime_directory_mode) %>
72 <% if @standard_input -%>
73 StandardInput=<%= @standard_input %>
75 <% if @standard_output -%>
76 StandardOutput=<%= @standard_output %>
78 <% if @standard_error -%>
79 StandardError=<%= @standard_error %>
81 <% if @private_tmp -%>
82 PrivateTmp=<%= @private_tmp %>
84 <% if @private_devices -%>
85 PrivateDevices=<%= @private_devices %>
87 <% if @private_network -%>
88 PrivateNetwork=<%= @private_network %>
90 <% if @protect_system -%>
91 ProtectSystem=<%= @protect_system %>
93 <% if @protect_home -%>
94 ProtectHome=<%= @protect_home %>
96 <% if @restrict_address_families -%>
97 RestrictAddressFamilies=<%= Array(@restrict_address_families).join(" ") %>
99 <% if @no_new_privileges -%>
100 NoNewPrivileges=<%= @no_new_privileges %>
103 TasksMax=<%= @tasks_max %>
105 <% if @success_exit_status -%>
106 SuccessExitStatus=<%= Array(@success_exit_status).join(" ") %>
109 Restart=<%= @restart %>
111 <% if @timeout_sec -%>
112 TimeoutSec=<%= @timeout_sec %>
115 PIDFile=<%= @pid_file %>
120 <% if @io_scheduling_class -%>
121 IOSchedulingClass=<%= @io_scheduling_class %>
123 <% if @io_scheduling_priority -%>
124 IOSchedulingPriority=<%= @io_scheduling_priority %>
127 KillMode=<%= @kill_mode %>
129 <% unless @dropin -%>
132 WantedBy=multi-user.target