これはInterSystems FAQ サイトの記事です。
IRISのサービスを /usr/lib/systemd/system/iris.service に作成し systemctl ユーティリティにて設定を行います。
手順は以下になります。 ※ 作業は root ユーザまたは root 権限を持つユーザで行ってください。
1. IRISの自動起動・自動停止のスクリプトファイル「irisstartstop」を作成します。
irisstartstop
Description=Intersystems IRIS
Before=shutdown.target
[Service]
Type=forking
ExecStart=/intersystems/IRIS/bin/iris start IRIS
ExecStop=/intersystems/IRIS/bin/iris stop IRIS quietly
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
※お使いの環境にあわせて編集してください。基本的に編集が必要なのは [Service] の箇所になります。
ExecStart、ExecStop:IRIS はインスタンス名、パスは <インストールフォルダ>/bin/iris を指定します。
2.
.png)
.png)