I'm looking at implementation of Mongrel::Stop.run:

   def run
     if @force
       @wait.to_i.times do |waiting|
         exit(0) if not File.exist? @pid_file
         sleep 1
       end

       Mongrel::send_signal("KILL", @pid_file) if File.exist? @pid_file
     else
       Mongrel::send_signal("TERM", @pid_file)
     end
   end

and a question arises: is there any good reason not to rm_f(@pid_file) after
sending that SIGKILL? More likely than not, this is how the PID files are
left undeleted.

Alex Verkhovsky
_______________________________________________
Mongrel-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/mongrel-users

Reply via email to