[Mongrel] "service mongrel_cluster start" startup fails

Steve Meyer lists at ruby-forum.com
Wed Dec 17 01:20:25 EST 2008


I did add /usr/local/bin to the path in the mongrel_cluster file and I 
still had issues; these were other ruby issues.
What I ended up doing was creating a custom file to do the start and 
stop. That worked and I did have to add /usr/local/bin to the path.

I've pasted in the file I created; I am sure there are issues with it. 
But it works...

Thanks for your help the path suggestion was key to my getting this to 
work.

#!/bin/sh
###########################################################################
# chkconfig: - 85 35
# description: Mongrel Rails appserver
# processname: mongrel_rails
# config: /home/sfcapp/sfc/current/config/mongrel_cluster.yml
#
export PATH=$PATH:/usr/local/bin
export SFCAPPHOME="/home/sfcapp/sfc"
export CURRENT_DIR="$SFCAPPHOME/current/config"
export MONGREL_RAILS="/usr/local/bin/mongrel_rails"
echo $SFCAPPHOME $CURRENT_DIR $MONGREL_RAILS


case "$1" in start)
 /usr/local/bin/mongrel_rails cluster::start -C 
/home/sfcapp/sfc/current/config/
mongrel_cluster.yml
;;
stop)
 /usr/local/bin/mongrel_rails cluster::stop -C 
/home/sfcapp/sfc/current/config/m
ongrel_cluster.yml
;;
restart)
 /usr/local/bin/mongrel_rails cluster::stop -C 
/home/sfcapp/sfc/current/config/mongrel_cluster.yml
 /usr/local/bin/mongrel_rails cluster::start -C 
/home/sfcapp/sfc/current/config/mongrel_cluster.yml
;;
*)
echo "usage start | stop | restart"
;;
esac
-- 
Posted via http://www.ruby-forum.com/.


More information about the Mongrel-users mailing list