You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Displays the current status of the server(s)#desc"Displays server status"task:status,:roles=>:appdofind_servers(:roles=>:app).eachdo |server|
run"touch #{fetch(:unicorn_pid)}",:hosts=>[server]pid=capture"cat #{fetch(:unicorn_pid)}",:hosts=>[server]ifpid.to_i > 0# Server is runningworkers=capture("ps uxww | grep unicorn | grep #{fetch(:application)} | grep #{fetch(:rails_env)} | grep worker ",:hosts=>[server]).split("\n").reject{ |l| l.include?("sh -c")}.countlogger.info"#{server.to_s.ljust(20)}: Server running #{workers} workers on pid #{pid.to_i}"else# Server is not runninglogger.info"#{server.to_s.ljust(20)}: Server _NOT_ running!"endendend
But simplified.
The text was updated successfully, but these errors were encountered:
Something like
But simplified.
The text was updated successfully, but these errors were encountered: