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 @standard_input -%>
97 StandardInput=<%= @standard_input %>
99 <% if @standard_output -%>
100 StandardOutput=<%= @standard_output %>
102 <% if @standard_error -%>
103 StandardError=<%= @standard_error %>
105 <% if @private_tmp -%>
106 PrivateTmp=<%= @private_tmp %>
108 <% if @private_devices -%>
109 PrivateDevices=<%= @private_devices %>
111 <% if @private_network -%>
112 PrivateNetwork=<%= @private_network %>
114 <% if @protect_system -%>
115 ProtectSystem=<%= @protect_system %>
117 <% if @protect_home -%>
118 ProtectHome=<%= @protect_home %>
120 <% if @read_write_paths -%>
121 ReadWritePaths=<%= Array(@read_write_paths).join(" ") %>
123 <% if @read_only_paths -%>
124 ReadOnlyPaths=<%= Array(@read_only_paths).join(" ") %>
126 <% if @inaccessible_paths -%>
127 InaccessiblePaths=<%= Array(@inaccessible_paths).join(" ") %>
129 <% if @restrict_address_families -%>
130 RestrictAddressFamilies=<%= Array(@restrict_address_families).join(" ") %>
132 <% if @no_new_privileges -%>
133 NoNewPrivileges=<%= @no_new_privileges %>
136 TasksMax=<%= @tasks_max %>
138 <% if @success_exit_status -%>
139 SuccessExitStatus=<%= Array(@success_exit_status).join(" ") %>
142 Restart=<%= @restart %>
144 <% if @timeout_sec -%>
145 TimeoutSec=<%= @timeout_sec %>
148 PIDFile=<%= @pid_file %>
153 <% if @io_scheduling_class -%>
154 IOSchedulingClass=<%= @io_scheduling_class %>
156 <% if @io_scheduling_priority -%>
157 IOSchedulingPriority=<%= @io_scheduling_priority %>
160 KillMode=<%= @kill_mode %>
162 <% unless @dropin -%>
165 WantedBy=multi-user.target