[Ferret-talk] patch to warn that "ferret_server appears to be already running"

David James davidj503 at gmail.com
Mon Apr 7 12:26:18 EDT 2008


Hi,

I added the following two lines to the top of the start method in
ferret_server.rb (acts_as_ferret)

pid = read_pid_file
raise "ferret_server appears to be already running" if pid

Without this, I found that:
1. I could do 'script/ferret_start -e production start' multiple times
without getting a warning message.
2. Running script/ferret_start... a 2nd time managed to kill an
already existing pid file, but left the old process running.
3. My capistrano deployments were sometimes confusing (based on the
above two items)

-David


More information about the Ferret-talk mailing list