anchor.diff:  	set -e
           ;;
     restart|force-reload)
  -	if [ -f "$CATALINA_PID" ]; then
  -		$0 stop
  -		sleep 1
  -	fi
  -	$0 start
  +    set +e
  +    catalina_sh stop
  +    sleep 1
  +    catalina_sh start
  +    set -e
           ;;
     *)
   	log_success_msg "Usage: $0 {start|stop|restart|force-reload|status}"
  
positive.code: PATH=/bin:/usr/bin:/sbin:/usr/sbin
  NAME=tomee
  DESC="Tomee"
  ENV_TOMEE="/opt/<%= @instance %>/env_tomee.sh"
  DAEMON_TOMEE="/opt/<%= @instance %>/bin/daemon.sh"
  JVM_TMP="/tmp/<%= @instance %>-tmp"
  
  
negative.code: 	. "$ENV_TOMEE"
  fi
  
  if [ ! -d "$CATALINA_BASE/conf" ]; then
    log_failure_msg "invalid CATALINA_BASE: $CATALINA_BASE"
    exit 1
  fi
  
  if [ ! -f "$CATALINA_HOME/bin/bootstrap.jar" ]; then
  	log_failure_msg "$NAME is not installed"
  	exit 1
  fi
  
  if [ -z "$CATALINA_TMPDIR" ]; then
  	CATALINA_TMPDIR="$JVM_TMP"
  