Fetching details from the dictionary...
night duty (in an imperial court, public office, etc.); night guard; night watch
attending (a noble) through the night
「宿直」 has another reading with different meanings.
night watch; night guard; night shift