anchor.diff:      set -e
           ;;
     *)
  -	log_success_msg "Usage: $0 {start|stop|restart|force-reload|status}"
  +	echo "Usage: $0 {start|stop|restart|force-reload|status}"
   	exit 1
   	;;
   esac
  
positive.code: 	. /etc/default/locale
  	export LANG
  fi
  
  . /lib/lsb/init-functions
  
  if [ -r /etc/default/rcS ]; then
  	. /etc/default/rcS
  fi
  
  
  # The following variables can be overwritten in $ENV_TOMEE
  
  # Run Tomcat 7 as this user ID and group ID
  
negative.code: fi
  
  catalina_sh() {
    if [ 'stop' = $1 ]; then
      if [ -s /opt/tomee/logs/catalina-daemon.pid ]; then
        $DAEMON_TOMEE $1
      else
        echo "Warning file /opt/tomee/logs/catalina-daemon.pid empty. Already stopped?"
      fi
    else
      $DAEMON_TOMEE $1
    fi
    status="$?"
    set +a -e
    return $status
  }
  
  case "$1" in
    start)
  	if [ -z "$JAVA_HOME" ]; then
  		echo "no JDK or JRE found - please set JAVA_HOME"
  		exit 1
  	fi
  
  	if [ ! -d "$CATALINA_BASE/conf" ]; then
  		echo "invalid CATALINA_BASE: $CATALINA_BASE"
  		exit 1
  	fi
  
  	 echo "Starting $DESC" "$NAME"
     set +e
     catalina_sh start
     set -e
  	;;
    stop)
  	echo "Stopping $DESC" "$NAME"
  
  	set +e
    catalina_sh stop
  	set -e
  	;;
     status)
  