tugboat.GTDは自動起動用スクリプトが準備されていない為、以下のスクリプトにて自動起動が可能にする。
以下の箇所を環境に合わせて書き換える。
/etc/init.dにtugboat.initを設置し、実行権限を付与する。
chmod 755 tugboat.init
自動起動を行なう為に以下の設定を行なう。
cd /etc/rc3.d/ ln -s ../init.d/tugboat.init S99tugboat cd ../rc5.d/ ln -s /etc/init.d/tugboat.init S99tugboat cd /etc/rc0.d/ ln -s ../init.d/tugboat.init K99tugboat cd ../rc6.d/ ln -s /etc/init.d/tugboat.init K99tugboat
#!/bin/bash # # Init file for tugboat.GTD # # chkconfig: 2345 55 25 # description: tugboat.GTD # # processname: tugboat.gtd # source function library . /etc/rc.d/init.d/functions TUGBOATDIR="/home/httpd/WebApplications/tugboat-gtd" prog="tugboat.GTD" start_check() { if [ -f $TUGBOATDIR/start.sh ]; then failure $"tugboat.GTD not found!" echo fi } start() { echo -n $"Starting $prog:" echo $TUGBOATDIR/start.sh echo } stop() { echo -n $"Stopping $prog:" echo $TUGBOATDIR/stop.sh echo } case "$1" in start) start ;; stop) stop ;; *) echo $"Usage: $0 {start|stop}" esac exit 1