<%- if @pidfile -%>
CHECK PROCESS <%= @name %> WITH PIDFILE <%= @pidfile %>
<%- else -%>
CHECK PROCESS <%= @name %> MATCHING <%= @matching %>
<%- end -%>
<%- if @program_start -%>
  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 -%>
<%- end -%>
<%- if @program_stop -%>
  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 -%>
<%- end -%>


<%- if @pidfile -%>
CHECK PROCESS <%= @name %> WITH PIDFILE <%= @pidfile %>
<%- else -%>
CHECK PROCESS <%= @name %> MATCHING "<%= @matching %>"
<%- end -%>
<%- if @program_start -%>
  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 -%>
<%- end -%>
<%- if @program_stop -%>
  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 -%>
<%- end -%>


Add quotes to MATCHING expression
Add quotes to MATCHING expression
