Document Type | Technical Information
Category | Administration
Applicable Product Version | 7FS02PS
Document Number | TADTI114
Overview
This guide explains the automatic TAC execution feature upon Linux OS reboot.
Method
1. Create tibero_auto_boot Script
vi /usr/bin/tibero_auto_boot #!/bin/bash export TB_HOME=/tac/tibero7 export CM_HOME=/tac/tibero7 export CM_SID=cm1 export LD_LIBRARY_PATH=$TB_HOME/lib:$TB_HOME/client/lib:$TB_HOME/../lib_dummy:/usr/openv/lib/ export PATH=$PATH:$TB_HOME/bin:$TB_HOME/client/bin sh /tac/boot_script/boot_all.sh vi /tac/boot_script/boot_all.sh sleep 30 tbcm -b sleep 10 cmrctl start as --name tas1 sleep 10 cmrctl start db --name tac1 ** /tac/boot_script/boot_all.sh contains the boot commands as shown above (or you can write them directly in tibero_auto_boot) ** If sleep is omitted or set too short, CM or services may not boot properly, so 30 seconds sleep before tbcm -b and 10 seconds sleep before each instance boot were added. ** Grant execution permission chmod 744 /usr/bin/tibero_auto_boot chmod 744 /tac/boot_script/boot_all.sh
2. Create tibero_auto_boot Service
Create a tibero_auto_boot service in the OS systemd.
vi /etc/systemd/system/tibero_auto_boot.service [Unit] Description=Tibero Auto boot systemd service. [Service] Type=simple User=root ExecStart=/bin/bash /usr/bin/tibero_auto_boot RemainAfterExit=true [Install] WantedBy=multi-user.target
3. Enable tibero_auto_boot.service
systemctl daemon-reload
systemctl enable tibero_auto_boot.service
** How to start and check status of tibero_auto_boot.service
systemctl start tibero_auto_boot.service
systemctl status tibero_auto_boot.service
โ tibero_auto_boot.service - Tibero Auto boot systemd service.
Loaded: loaded (/etc/systemd/system/tibero_auto_boot.service; enabled; vendor preset: disabled)
Active: active (running) (thawing) since Thu 2025-11-13 14:46:41 KST; 5s ago
Main PID: 8962 (bash)
Tasks: 3 (limit: 29373)
Memory: 1.0M
CGroup: /system.slice/tibero_auto_boot.service
โโ8962 /bin/bash /usr/bin/tibero_auto_boot
โโ8963 sh /tac/boot_script/boot_all.sh
โโ8964 sleep 30