# File lib/mongrel.rb, line 962
962:     def stop(needs_restart=false, unlink_pid_file=true)
963:       @listeners.each {|name,s| 
964:         s.stop 
965:       }
966: 
967:       @needs_restart = needs_restart
968:       if unlink_pid_file
969:         File.unlink @pid_file if (@pid_file and File.exist?(@pid_file))
970:       end 
971:     end