# File lib/mongrel.rb, line 945 945: def stop(needs_restart=false, unlink_pid_file=true) 946: @listeners.each {|name,s| 947: s.stop 948: } 949: 950: @needs_restart = needs_restart 951: if unlink_pid_file 952: File.unlink @pid_file if (@pid_file and File.exist?(@pid_file)) 953: end 954: end