- Hopt
- Posts: 0
- Starts: 1
- Wiki Edits: 0
- Location: Raleigh, NC, USA
We've noticed that our mongrel.pid files are getting destroyed whenever our app forks a new process. To get around stop/restart issues with mongrel_rails when mongrel is running but the mongrel.pid is missing we wrote a separate python script to start/stop/restart mongrel. Our script is basically a wrapper around mongrel_rails but ensures mongrel.pid exists or gets recreated when necessary. The script gets all required information from the @reboot mongrel cron entries, no configuration is needed and it can be run from anywhere on the account.
You can find it here -
http://hoptstudios.com/mongrel
ex. mongrel stop
2007-09-15 03:31 PM