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 %>
102 <% if @success_exit_status -%>
103 SuccessExitStatus=<%= Array(@success_exit_status).join(" ") %>
106 Restart=<%= @restart %>
108 <% if @timeout_sec -%>
109 TimeoutSec=<%= @timeout_sec %>
112 PIDFile=<%= @pid_file %>
114 <% unless @dropin -%>
117 WantedBy=multi-user.target