In a few days the auth.log on my Ubuntu 16.4.4 server has grown to 28 GB writing the following lines over and over again
Apr 14 21:31:29 Cloud systemd-logind[924]: Suspending...
Apr 14 21:31:29 Cloud systemd-logind[924]: Failed to execute operation: $
I know that this output is the result of me following the second answer here to prevent my laptop on which the server is installed from sleeping. I used the commandsudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
to accomplish this task. The question I am asking myself now is:
- Is there a better way to accomplish my goal of preventing the system from sleeping that is completely CLI based?
- How do I prevent this message from being logged over and over again?