Skip to content

Preventing Server Going To Sleep



The server was having some glitches very briefly, and the logs showed it was going to sleep. This is what I did to hopefully prevent that from happening again.

sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

Send this to a friend