ホスト情報変更用シェルスクリプト実行用unitファイル
Interstage起動前にホスト情報変更用シェルスクリプト(chhostname.sh)を実行するためのunitファイル(FJSVisas_start.service)の記述例を以下に記載します。
# Change hostname before IAPS start
[Unit]
Description=Change hostname before IAPS start
Wants=FJSVtd_start.service FJSVod_start.service
After=network.target network-online.target rsyslog.service \
remote-fs.target nss-lookup.target \
FJSVtd_stop.service FJSVod_stop.service
Before=FJSVtd_start.service FJSVod_start.service
[Service]
Type=oneshot
ExecStart=/interstage/backup_restore/chhostname.sh
ExecStop=/bin/true
[Install]
WantedBy=multi-user.targetRed Hat OpenShiftのlivenessProbe用unitファイル
Interstage起動後にInterstageのlivenessProbeを開始するためのunitファイル(FJSVisas_inspect_start.service)の記述例を以下に記載します。
# Inspect whether IAPS is alive [Unit] Description=Inspect whether IAPS is alive Wants=FJSVtd_start.service FJSVod_start.service After=FJSVtd_start.service FJSVod_start.service [Service] Type=simple ExecStart=/opt/FJSVisas/etc/HA/PRIMECLUSTER/IS_INSPECT ExecStop=/bin/true [Install] WantedBy=multi-user.target