Permalink
Browse files

Fix deploy webrick

  • Loading branch information...
1 parent 6e1116d commit df4c65080ef64e3e55c227c4328f7d0e1868cb8e @iboard committed May 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 config/recipes/webrick.rb
@@ -18,7 +18,7 @@
run "kill -9 #{pid}"
rescue => e
# try to kill with ps
- run "ps xa|grep 'server.*#{port}.*#{bind_ip}.*production.*#{port}.pid'|grep -v 'grep' > /tmp/_old_pid"
+ run "ps xa|grep 'server.*#{port}.*#{bind_ip}.*production.*'|grep -v 'grep' > /tmp/_old_pid"
begin
run "cat /tmp/_old_pid |cut -f1,2 -d' '|sed s/\\?//g > /tmp/__old_pid"
run "xargs --arg-file=/tmp/__old_pid kill -9 && rm -f /tmp/*_old_pid"

0 comments on commit df4c650

Please sign in to comment.