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
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to