<%- if @pidfile -%>
CHECK PROCESS <%= @name %> WITH PIDFILE <%= @pidfile %>
<%- else -%>
CHECK PROCESS <%= @name %> MATCHING <%= @matching %>
<%- end -%>
  START PROGRAM = "<%= @program_start %>"
  <%- if @uid -%>
    AS UID <%= @uid %>
  <%- end -%>
  <%- if @gid -%>
    AS GID <%= @gid %>
  <%- end -%>
  <%- if @real_timeout_start -%>
    WITH timeout <%= @real_timeout_start %> SECONDS
  <%- end -%>
  STOP PROGRAM = "<%= @program_stop %>"
  <%- if @uid -%>
    AS UID <%= @uid %>
  <%- end -%>
  <%- if @gid -%>
    AS GID <%= @gid %>
  <%- end -%>
  <%- if @real_timeout_stop -%>
    WITH timeout <%= @real_timeout_stop %> SECONDS
  <%- end -%>

