Sentence:  It took him a few seconds to put his thoughts in order , and then he got up from the bunk where he had been <WSD>resting</WSD> , sleeplessly . 
Meaning of the word marked with <WSD> tags:  not move; be in a resting position