start scriptの一例

# !/bin/bash
#

if [ `hostname` != 'standalone' ]; then
        echo Cannot run `basename $0` on `hostname` computer
        exit 1
fi

/opt/rtcds/kamioka/k1/scripts/killk1vex

sleep 5
(cd /opt/rtcds/kamioka/k1/target/k1vex/k1vexepics && ./startupK1)
sleep 5
/opt/rtcds/kamioka/k1/target/k1vex/scripts/startupK1rt
sleep 5
sudo killall -q daqd
if [ -e /opt/rtcds/kamioka/k1/target/k1vex/k1vexepics/burt/safe.snap ]; then
        fname=/opt/rtcds/kamioka/k1/target/k1vex/k1vexepics/burt/safe.snap;
else
        fname=`ls -t /opt/rtcds/kamioka/k1/target/k1vex/k1vexepics/burt/k1vex_bu
rt_*.snap  2>/dev/null | head -1`
fi
if [ "x$fname" != x ]; then
        log_fname=${fname%.*}.log
        burtwb -f ${fname} -l ${log_fname} -v
        echo Burt restored $fname
fi
# Always write one into burt to let the FE go
caput `grep -m 1 BURT_RESTORE /opt/rtcds/kamioka/k1/target/k1vex/k1vexepics/auto
Burt.req` 1
(cd /opt/rtcds/kamioka/k1/target/gds && ./awgtpman_startup/awgtpman_k1vex.cmd)
touch /opt/rtcds/kamioka/k1/target/k1vex/logs/reboot.log
chmod 777 /opt/rtcds/kamioka/k1/target/k1vex/logs/reboot.log

KAGRA/Subgroups/DGS/Manual/CheckList/StartScript (last edited 2013-06-07 15:41:46 by OsamuMiyakawa)