■
mongrelの起動バッチを書いた。
#!/bin/sh # chkconfig: 345 80 15 # description: Hoge Ruby on Rails application APP_DIR="/usr/local/hoge/RoR" case "$1" in 'start') echo "Starting Hoge Application Server Start:" mongrel_rails start -d -c $APP_DIR -a 0.0.0.0 exit ;; 'stop') echo "Stopping Hoge Application Server Stop: " mongrel_rails stop -c $APP_DIR -w 2 exit ;; 'restart') ;; *) echo "Usage: $0 {start|stop}" exit 1 esac exit 0