# File lib/mongrel_config/app.rb, line 28 28: def get(signal) 29: if _running? 30: @signal = signal.upcase 31: pid = open($PID_FILE) {|f| f.read } 32: begin 33: Process.kill(@signal, pid.to_i) 34: @results = "Mongrel sent PID #{pid} signal #{@signal}." 35: rescue 36: puts "ERROR: #$!" 37: @results = "Failed to signal the Mongrel process. Maybe it is not running?<p>#$!</p>" 38: end 39: else 40: @results = "Mongrel does not seem to be running. Maybe delete the pid file #{$PID_FILE} or start again." 41: end 42: 43: render :kill 44: end