# File lib/picnic/service_control.rb, line 214 def stop if File.exists? @options[:pid_file] pid = open(@options[:pid_file]).read.to_i begin Process.kill("TERM", pid) exit 0 rescue Errno::ESRCH $stderr.puts "#{app} process '#{pid}' does not exist." exit 1 end else $stderr.puts "#{@options[:pid_file]} not found. Is #{app} running?" exit 4 end end