anchor.diff:    fi
   }
   
  -<%# Some functions to match LSB because RHEL doesn't (╯°□°）╯︵ ┻━┻ %>
  +<%# Some functions to match LSB %>
   
   log_daemon_msg() {
     echo -n "$1"
  
positive.code:   start-stop-daemon --stop --quiet --pidfile "<%= @pid_file %>" --user "<%= @user %>" --signal "<%= @reload_signal %>"
  }
  
  <%- elsif @platform_family == 'rhel' -%>
  . /etc/rc.d/init.d/functions
  
  _pid () {
    pidof -s -o $$ -o $PPID -o %PPID -x "$1" || pidof -s -o $$ -o $PPID -o %PPID -x "${1##*/}"
  }
  
  _start() {
    ( cd "<%= @directory %>" && daemon --user "<%= @user %>" --pidfile "<%= @pid_file %>" "<%= @daemon %> <%= @daemon_options %>" >/dev/null 2>&1 ) &
  <%- unless @pid_file_external -%>
    sleep 1 # Give it some time to start before checking for a pid
    _pid "<%= @daemon %>" > "<%= @pid_file %>" || return 3
  <%- end -%>
    return 0 <%# ¯\_(ツ)_/¯ %>
  }
  
  _stop() {
    if [ -r "<%= @pid_file %>" ]; then
      kill -<%= @stop_signal%> "$(cat "<%= @pid_file %>")"
    else
      killproc "<%= @daemon %>" -<%= @stop_signal%> >/dev/null
    fi
  }
  
  _status() {
    status -p "<%= @pid_file %>" "<%= @daemon %>"
  }
  
  _reload() {
  
negative.code: 
  log_end_msg() {
    if [ "$1" = 0 ]; then
      echo " [  OK  ]"
    else
      echo " [FAILED]"
    fi
  }
  <%- end -%>
  
  set -e
  