Method: #kill_process

Defined in:
lib/underglow/capistrano/helpers.rb

#kill_process(process, signal) ⇒ Object

Sends kill signal to process is running



22
23
24
25
26
27
28
29
# File 'lib/underglow/capistrano/helpers.rb', line 22

def kill_process(process, signal)
  within "#{shared_path}/pids" do
    pid = capture_remote_file("#{process}.pid")
    # binding.pry

    execute :kill, "-#{signal}", pid unless pid.blank?
  end
end