Monit does NOT get the normal path information that a regular user on the server would get so you have to be VERY specific in you configuration files. Some times the best solution is to create a startup script that you call from monit...
script: #!/bin/bash # Get the port number PORT=$2 # Set the initial path export PATH=${PATH}:/usr/bin:/usr/local/bin start () { mongrel_rails cluster::start --config $CONFIG_FILE --clean --only $PORT } stop () { mongrel_rails cluster::stop --config $CONFIG_FILE --clean -- only $PORT --force } case $1 in start) start ;; stop) stop ;; *) echo $"Usage: $0 {start|stop} port" exit 1 ;; esac exit 0 Now you can call it from monit like this: start program = "/usr/local/bin/script.sh start 8000" stop program = "/usr/local/bin/script.sh stop 8000" --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---