Systemd is the new daemon/service management for Linux.
It is simpler from previous service management and very flexible.
will show list of all services (and more)
if we want to see only services:
systemctl list-units | grep service
systemctl status <serviceName>
will show the status of serviceName
systemctl start <serviceName>
will start serviceName
systemctl enable <serviceName>
make the service to start automatically next time system boot
show all the services that failed to start.
systemctl is-enabled <serviceName>
tell us if the service is enabled (will start automatically when machine start)
will suspend the system (information still in RAM).
will hibernate the system.
systemctl list-units --type=target
will show you all the current active targets, the target is equivalent to runlevel.
But you can have more than one active target.
- run level 3 is multi-user.target.
- run level 5 is graphical.target
show all log from the last boot.
journalctl -u <serviceName>
show all log for serviceUnit service
Reload the systemd manager configuration. Should be run after creating or changing systemd configuration files, like service files.