# File lib/thin/daemonizing.rb, line 116 def send_signal(signal, pid_file) if File.exist?(pid_file) && pid = open(pid_file).read pid = pid.to_i print "Sending #{signal} signal to process #{pid} ... " Process.kill(signal, pid) puts pid else puts "Can't stop process, no PID found in #{pid_file}" nil end rescue Errno::ESRCH # No such process puts "process not found!" nil end