起動停止スクリプト テンプレート
chkconfig用のもの。すごくシンプル版。
#!/bin/bash # hoge # # chkconfig: 34 70 30 # description: hoge. RETVAL=0 start() { echo -n "Starting hoge: " ### return 0 } stop() { ### return 0 } case "$1" in start) start ;; stop) stop ;; restart) stop start ;; *) echo $"Usage: $0 {start|stop|restart}" exit 1 esac exit $RETVAL