Kissing the book was the equivalent of signing on the dotted line, the book in question being the bible, he was promising by God to serve.
There's a Recruted Collier's lament in the Mudcat Songbook written as a reply to the song if you're interested.
LTS