anchor.diff:  #
   # Function that starts the daemon/service
   #
  +get_pid() {
  +    cat "$PIDFILE"
  +}
  +
  +is_running() {
  +    [ -f "$PIDFILE" ] && ps `get_pid` > /dev/null 2>&1
  +}
  +
   do_start()
   {
       # Return
  
positive.code: #! /bin/sh
  ### BEGIN INIT INFO
  # Provides:          consul
  # Required-Start:    $local_fs $remote_fs
  # Required-Stop:     $local_fs $remote_fs
  # Default-Start:     2 3 4 5
  # Default-Stop:      S 0 1 6
  # Short-Description: Consul service discovery framework
  # Description:       Healthchecks local services and registers
  #                    them in a central consul database.
  ### END INIT INFO
  
  # Do NOT "set -e"
  
  # PATH should only include /usr/* if it runs after the mountnfs.sh script
  PATH=/usr/sbin:/usr/bin:/sbin:/bin:<%= scope.lookupvar('consul::bin_dir') %>
  DESC="Consul service discovery framework"
  NAME=consul
  DAEMON=<%= scope.lookupvar('consul::bin_dir') %>/$NAME
  DAEMON_ARGS="agent -config-dir <%= scope.lookupvar('consul::config_dir') %> <%= scope.lookupvar('consul::extra_options') %>"
  
negative.code:         2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
      esac
      ;;
    reload)
      #
      # If do_reload() is not implemented then leave this commented out
      # and leave 'force-reload' as an alias for 'restart'.
      #
      log_daemon_msg "Reloading $DESC" "$NAME"
      do_reload
      log_end_msg $?
      ;;
    restart)
      log_daemon_msg "Restarting $DESC" "$NAME"
      $0 stop
      if is_running; then
          echo "Unable to stop $NAME, will not attempt to start"
          exit 1
      fi
      $0 start
      ;;
    status)
      if is_running; then
          echo "$NAME is running"
      else
          echo "$NAME is stopped"
          exit 1
      fi
      ;;
    *)
      #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
  