The correct answer is: Do what the league rules say to do.
In reality - if the teams are walking out of the changing rooms at the start of the game, I'll lead them out and line them up for the handshake. That's easy and probably what they do expect, even if I'm on my own. Ditto if I'm doing any...