# File lib/ramaze/tool/bin.rb, line 268 def stop(command) # {{{ unless pid_file = find_pid(@ourargs[@ourargs.index(command) + 1]) $stderr.puts "No pid_file found! Cannot stop ramaze (may not be started)." return false end pid = File.read(pid_file).to_i puts "Stopping pid #{pid}" Process.kill("INT", pid) sleep 2 if is_running?(pid) $stderr.puts "Process #{pid} did not die, forcing it with -9" Process.kill(9, pid) File.unlink(pid_file) if File.file?(pid_file) true else File.unlink(pid_file) if File.file?(pid_file) true end end