anchor.diff:      esac
       ;;
     status)
  -    status_of_proc -p "$PIDFILE" "$DAEMON" "$NAME"
  +    status_of_proc -p "$PIDFILE" "$INSTALL_DIR/$DAEMON" "$NAME"
       ;;
     restart|force-reload)
       do_stop
  
positive.code: NAME=faraday-server
  USER=faraday
  INSTALL_DIR=/opt/faraday
  DAEMON="$INSTALL_DIR/.venv/bin/python"
  PIDFILE="/run/$NAME/$NAME.pid"
  LOGFILE="/var/log/$NAME/$NAME.log"
  DAEMON_ARGS="faraday.py --gui=no-gui"
  PATH=/sbin:/usr/sbin:/bin:/usr/bin:$INSTALL_DIR/.venv/bin
  
  [ -r /etc/default/$NAME ] && . /etc/default/$NAME
  
  # Exit if the package is not installed
  [ -x "$DAEMON" ] || exit 0
  
  # Source function library.
  <% case node['platform_family'] -%>
  
negative.code: 
      if [ "$RUN" != "true" ]; then
          log_action_msg "Not starting faraday: disabled by /etc/default/$NAME".
          return 2
      fi
  
      start-stop-daemon --start --chuid $USER --pidfile=$PIDFILE -b --no-close -m -d $INSTALL_DIR --exec $INSTALL_DIR/$DAEMON -- $DAEMON_ARGS >> $LOGFILE 2>&1 || return 2
      [ -e "$PIDFILE" ] && chown $USER $PIDFILE
      return 0
  }
  