You can tell the computer to go to sleep by executing the following command from a terminal
The computer should immediately go to sleep.
Sleep with delay
If you would like to add a delay you can do the following. Replace 5 with the number of seconds you want to wait.
sleep 5 && systemctl suspend
The following command
systemctl restart auditd
Returns the following error on CentOS
Failed to restart auditd.service: Operation refused, unit auditd.service may be requested by dependency only (it is configured to refuse manual start/stop).
See system logs and 'systemctl status auditd.service' for details.
Work around is to use service for the restart
service auditd restart
List enabled system services
systemctl list-unit-files | grep enabled
Can also grep by disabled
systemctl list-unit-files | grep disabled
Or look for a specific service
systemctl list-unit-files | grep -i service-name