So here
Odysseus slept and the young hands slept beside him.
Not the swineherd. Not his style to bed indoors,
apart from his pigs. He geared up to go outside
and it warmed Odysseus’ heart,
Eumaeus cared so much for his absent master’s goods.
First, over his broad shoulders he slung a whetted sword,
wrapped himself in a cloak stitched tight to block the wind,
and adding a cape, the pelt of a shaggy well-fed goat,
he took a good sharp lance to fight off men and dogs.
Then out he went to sleep where his white-tusked boars
had settled down for the night…just under
a jutting crag that broke the North Wind’s blast.

– Homer

The Odyssey, Book 14, lines 590-602. After providing his guest Odysseus with a comfortable bed indoors, Eumaeus sleeps outside with the pigs. Armed with a sword and lance, the loyal swineherd beds down outdoors to protect his "absent" master’s animals.