jco_stop(UNIX限定)
機能
JP1/IM - Managerを自動的に終了するためのスクリプトです。このコマンドの実行には,JP1/IM - Managerのインストールとセットアップの完了後,次に示す操作が必要です。
# cd /etc/opt/jp1cons
# cp -p jco_stop.model jco_stop
この操作によって,システムの終了時にJP1/IM - Managerが自動的に終了します。ただし,IMデータベースサービスが起動している場合は,JP1/IM - Managerを停止したあとに自動的にIMデータベースサービスが終了します。
JP1/IM - Managerが停止しなかった場合,KAVB8800-Eのメッセージが標準出力に出力されます。
IMデータベースサービスが停止しなかった場合,KAVB8801-Eのメッセージが標準出力に出力されます。
JP1/IM - Managerを手動で停止する場合は,/etc/opt/jp1cons/jco_stop.modelスクリプト,またはこのスクリプトをコピーしたファイルを実行してください。
形式
jco_stop
実行権限
スーパーユーザー権限
格納先ディレクトリ
/etc/opt/jp1cons/
注意事項
環境変数JP1_HOSTNAMEが設定されていない環境でこのコマンドを実行してください。環境変数JP1_HOSTNAMEが設定されている環境でこのコマンドを実行すると,物理ホストではなく環境変数JP1_HOSTNAMEに設定した論理ホストのJP1/IM - Managerを停止しようとします。このコマンドは論理ホストに対応していないため,物理ホストのJP1/IM - Managerを停止する場合は,環境変数JP1_HOSTNAMEを削除してください。
戻り値
0 |
正常終了 |
1 |
引数が二つ以上指定されている,または停止要求がタイムアウトした |
使用例1
- JP1/IM - ManagerおよびIMデータベースサービスが起動している場合
-
- 入力値
jco_stop
- 結果
KAVB3674-I Termination processing of JP1_CONS has started. KAVB3675-I The stop command terminated normally. KNAN11185-I Processing to stop the IM database service will now start. KNAN11028-I Please wait. KNAN11187-I The IM database service stopped normally. KNAN11186-I Processing to stop the IM database service ended normally. KNAN11188-I The status of the IM database service will now be confirmed. KNAN11183-I The IM database service is stopped. KNAN11189-I The status of the IM database service was successfully confirmed.
使用例2
- JP1/IM - Managerが起動している,およびIMデータベースサービスを起動していない場合
-
- 入力値
jco_stop
- 結果
KAVB3674-I Termination processing of JP1_CONS has started. KAVB3675-I The stop command terminated normally. KNAN11188-I The status of the IM database service will now be confirmed. KNAN11183-I The IM database service is stopped. KNAN11189-I The status of the IM database service was successfully confirmed.
使用例3
- JP1/IM - ManagerおよびIMデータベースサービスが起動していない場合
-
- 入力値
jco_stop
- 結果
KAVB3674-I Termination processing of JP1_CONS has started. KAVB3662-I The process management is not running. KNAN11188-I The status of the IM database service will now be confirmed. KNAN11183-I The IM database service is stopped. KNAN11189-I The status of the IM database service was successfully confirmed.
使用例4
- JP1/IM - Managerが起動していない,およびIMデータベースサービスが起動している場合
-
- 入力値
jco_stop
- 結果
KAVB3674-I Termination processing of JP1_CONS has started. KAVB3662-I The process management is not running. KNAN11185-I Processing to stop the IM database service will now start. KNAN11028-I Please wait. KNAN11187-I The IM database service stopped normally. KNAN11186-I Processing to stop the IM database service ended normally. KNAN11188-I The status of the IM database service will now be confirmed. KNAN11183-I The IM database service is stopped. KNAN11189-I The status of the IM database service was successfully confirmed.