The 'rake update' command restarts Passenger apps that have changed since the last update.
It then goes on the update the Gems. That seems a bit odd: would it not be better to update the Gems first, so any restarted apps pick up the new Gems? The task comment says: '# update gems and restart applications as needed' i.e. the reverse order Sebb