pgrep -u rails -f Rack | sort > /tmp/rails.actual.$$
# Get a list of rack processes we expect to be running
pgrep -u rails -f Rack | sort > /tmp/rails.actual.$$
# Get a list of rack processes we expect to be running
# Get a list of unexpected rack processes
pids=$(comm -23 /tmp/rails.actual.$$ /tmp/rails.expected.$$)
# Kill any expected rack processes
# Get a list of unexpected rack processes
pids=$(comm -23 /tmp/rails.actual.$$ /tmp/rails.expected.$$)
# Kill any expected rack processes