[Ferret-talk] patch to warn that "ferret_server appears to be already running"
David James
davidj503 at gmail.com
Mon Apr 7 14:10:53 EDT 2008
Update: I now prefer to use $stdout.puts instead of 'raise' -- because
I don't consider this situation to be exceptional -- and I don't want
Capistrano to treat this situation as an error and halt.
On Mon, Apr 7, 2008 at 12:26 PM, David James <davidj503 at gmail.com> wrote:
> 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
More information about the Ferret-talk
mailing list