# DO NOT EDIT - This file is being maintained by Chef [Unit] Description=<%= @description %> <% if @after -%> After=<%= Array(@after).join(" ") %> <% end -%> <% if @wants -%> Wants=<%= Array(@wants).join(" ") %> <% end -%> [Service] Type=<%= @type %> <% if @limit_nofile -%> LimitNOFILE=<%= @limit_nofile %> <% end -%> <% if @limit_as -%> LimitAS=<%= @limit_as %> <% end -%> <% if @memory_low -%> MemoryLow=<%= @memory_low %> <% end -%> <% if @memory_high -%> MemoryHigh=<%= @memory_high %> <% end -%> <% if @memory_max -%> MemoryMax=<%= @memory_max %> <% end -%> <% @environment.each do |name,value| -%> Environment="<%= name %>=<%= value %>" <% end -%> <% if @environment_file -%> EnvironmentFile=<%= @environment_file %> <% end -%> <% if @user -%> User=<%= @user %> <% end -%> <% if @group -%> Group=<%= @group %> <% end -%> <% if @working_directory -%> WorkingDirectory=<%= @working_directory %> <% end -%> <% if @exec_start_pre -%> ExecStartPre=<%= @exec_start_pre %> <% end -%> ExecStart=<%= @exec_start %> <% if @exec_start_post -%> ExecStartPost=<%= @exec_start_post %> <% end -%> <% if @exec_stop -%> ExecStop=<%= @exec_stop %> <% end -%> <% if @exec_reload -%> ExecReload=<%= @exec_reload %> <% end -%> <% if @runtime_directory -%> RuntimeDirectory=<%= @runtime_directory %> <% end -%> <% if @runtime_directory_mode -%> RuntimeDirectoryMode=<%= sprintf("0%o", @runtime_directory_mode) %> <% end -%> <% if @standard_input -%> StandardInput=<%= @standard_input %> <% end -%> <% if @standard_output -%> StandardOutput=<%= @standard_output %> <% end -%> <% if @standard_error -%> StandardError=<%= @standard_error %> <% end -%> <% if @private_tmp -%> PrivateTmp=<%= @private_tmp %> <% end -%> <% if @private_devices -%> PrivateDevices=<%= @private_devices %> <% end -%> <% if @private_network -%> PrivateNetwork=<%= @private_network %> <% end -%> <% if @protect_system -%> ProtectSystem=<%= @protect_system %> <% end -%> <% if @protect_home -%> ProtectHome=<%= @protect_home %> <% end -%> <% if @no_new_privileges -%> NoNewPrivileges=<%= @no_new_privileges %> <% end -%> <% if @success_exit_status -%> SuccessExitStatus=<%= Array(@success_exit_status).join(" ") %> <% end -%> <% if @restart -%> Restart=<%= @restart %> <% end -%> <% if @timeout_sec -%> TimeoutSec=<%= @timeout_sec %> <% end -%> <% if @pid_file -%> PIDFile=<%= @pid_file %> <% end -%> [Install] WantedBy=multi-user.target