anchor.diff:    exec $APP_HOME/bin/$APP_CLI "$@"
   fi
   
  -if [ `id -u` -ne 0 ]; then
  -  echo "You must be executing with root privileges to launch commands."
  -  echo "Either log in as root, use sudo, or add sudo privileges for running ${APP_NAME} with your user."
  +if [ ! -w "$(_p "/etc/${APP_NAME}/conf.d")" ] ; then
  +  echo "Error: You must be executing as the user '${APP_USER}' or with root privileges to launch commands."
  +  echo "Either log in as '${APP_USER}', root, use sudo, or add sudo privileges for running ${APP_NAME} with your current user."
     exit 1
   fi
   
  
positive.code:       break;;
  
      configure)
        configure $@
        break;;
  
      reconfigure)
        reconfigure $@
        break;;
  
  
negative.code: for file in $(_p "/etc/${APP_NAME}/conf.d")/*; do
    if [ -f $file ]; then . $file; fi
  done
  
  # Some actions require root privileges
  ensure_root() {
    if [ $(id -u) -ne 0 ]; then
      echo "Error: You must be executing with root privileges to use this command."
      echo "Either log in as root, use sudo, or add sudo privileges for running ${APP_NAME} with your user."
      exit 1
    fi
  }
  
  # Return all the environment variables accessible to the app.
  show_env() {
  