4.2.1 本製品を組み込んだTomcatの停止方法
本製品を組み込んだTomcatは,用途に応じて次のどれかの方法で正常に停止できます。
-
次のどちらかのコマンドを実行する。
$ sudo "${CATALINA_HOME}/bin/shutdown.sh"※
または
$ sudo "${CATALINA_HOME}/bin/catalina.sh" stop※
注※ -forceオプションはサポートしていません。
-
フォアグラウンドで起動していた場合は,catalina.sh runを実行したコンソール上で[Ctrl]+[C]キーを入力する。
-
TomcatプロセスモニタのPIDに対してSIGTERMシグナルを送信する。
- 重要
-
本製品を使用する場合,それぞれのプロセスのPIDは親子関係になっています。次の表に,その親子関係を示します。システムの停止をするためにSIGTERMシグナルを送信する場合は,表の(A)または(B)のPIDに対して送信してください。
プロセス
PID
親PID
コマンドライン
ラッパースクリプト
(A)
catalina.shまたはstartup.shの呼び出し元プロセスのPIDです。
シェルやsystemdから起動した場合,通常は「1」です。
bash /opt/hitachi/ucart/script/wrapper.sh …(略)… org.apache.catalina.startup.Bootstrap start
Tomcatプロセスモニタ
(B)
(A)
<使用しているjavaのパス※> …(略)… com.cosminexus.appruntime.tomcat.monitor.ProcessMonitor …(略)… org.apache.catalina.startup.Bootstrap start
Tomcatサーバプロセス
(C)
(B)
<使用しているjavaのパス※> …(略)… org.apache.catalina.startup.Bootstrap start
- 注※
-
uCosminexus Application Runtime with Java for Apache Tomcatを使用している場合は「/opt/Cosminexus/jdk17/bin/java」,「/opt/Cosminexus/jdk/bin/java」または「/opt/Cosminexus/jdk/jre/bin/java」です。