From charlesreid1

Overview

Systemd is the initialization system, and is the new de-facto standard on most linux distributions. (<-- written March 2016)

To start or stop processes, use systemctl

$ systemctl restart samba

to check the status of a process:

$ systemctl status nfs-kernel-server

You can see if somethign is enabled using the is-enabled argument/otpion:

$ systemctl is-enabled ssh

Logging

systemd has a component called journald that handles logging. This creates binary logs, which use much less space than text logs but are mroe difficult to read.

The journalctl command gives you access to the system logs.

To follow new log output on the system:

$ journalctl -f

(this is similar to tail -f /var/log/my_log_file)

You can filter the output by PID:

$ journalctl PID=15800

You can also use the name of the process to filter it:

$ journalctl -u httpd

Related