Module: GoldenBrindle
- Defined in:
- lib/golden_brindle/base.rb,
lib/golden_brindle/const.rb,
lib/golden_brindle/hooks.rb,
lib/golden_brindle/command.rb,
lib/golden_brindle/validations.rb,
lib/golden_brindle/actions/stop.rb,
lib/golden_brindle/actions/start.rb,
lib/golden_brindle/rails_support.rb,
lib/golden_brindle/actions/cluster.rb,
lib/golden_brindle/actions/restart.rb,
lib/golden_brindle/actions/configure.rb
Defined Under Namespace
Modules: Actions, Cluster, Const, Hooks, Validations Classes: Base, RailsSupport, Registry
Class Method Summary collapse
Class Method Details
.send_signal(signal, pid_file) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/golden_brindle/command.rb', line 4 def send_signal(signal, pid_file) pid = open(pid_file).read.to_i print "Sending #{signal} to Unicorn at PID #{pid}..." begin Process.kill(signal, pid) rescue Errno::ESRCH puts "Process does not exist. Not running." end puts "Done." end |