我通过jsvc作为守护进程启动了tomcat。但是 jsvc 启动后,我看到了双 jsvc 进程。进程已由 daemon.sh 使用 start 选项启动:
start )
"$JSVC" $JSVC_OPTS \
-java-home "$JAVA_HOME" \
-java-home /usr/lib/jvm/jre1.7.0_11 \
-user $TOMCAT_USER \
-pidfile "$CATALINA_PID" \
-wait 10 \
-outfile "$CATALINA_OUT" \
-errfile "&1" \
-classpath "$CLASSPATH" \
"$LOGGING_CONFIG" $JAVA_OPTS $CATALINA_OPTS \
-Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" \
-Dcatalina.base="$CATALINA_BASE" \
-Dcatalina.home="$CATALINA_HOME" \
-Djava.io.tmpdir="$CATALINA_TMP" \
$CATALINA_MAIN
exit $?