How To: Disable Sleep/Hibernation on Ubuntu Server

*~grumbles~*

Seriously! My log contained lovely hints like:

[code]Apr 3 12:18:27 server systemd[1]: Reached target Sleep.[/code]

[code]sudo systemctl mask sleep.target[/code]

[code]sudo systemctl mask suspend.target[/code]

[code]sudo systemctl mask hibernate.target[/code]

[code]sudo systemctl mask hybrid-sleep.target[/code]

[code]systemctl status sleep.target[/code]

Finally, thanks for reading. Like always, I love the feedback and the newsletter is still there waiting for you to sign up. If you do sign up, I chose a pretty crappy domain name and you should probably check your spam inbox for the confirmation email.