Skip to content
This repository has been archived by the owner on Apr 23, 2021. It is now read-only.

Commit

Permalink
fix killing old pids
Browse files Browse the repository at this point in the history
  • Loading branch information
iboard committed Apr 3, 2012
1 parent b817617 commit a16b3cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/recipes/webrick.rb
Expand Up @@ -18,7 +18,7 @@
run "kill -9 #{pid}" run "kill -9 #{pid}"
rescue => e rescue => e
# try to kill with ps # try to kill with ps
process = `ps xa|grep "server.*#{port}.*#{bind_ip}.*production.*#{port}.pid"|grep -v grep` process = `ps xa|grep "server.*#{port}.*#{bind_ip}.*production.*#{port}.pid"|head -1`
pid = process.strip.split(/\s+/)[0] pid = process.strip.split(/\s+/)[0]
puts "Found running process at #{process}" puts "Found running process at #{process}"
begin begin
Expand Down

0 comments on commit a16b3cc

Please sign in to comment.