Skip to main content

SystemCtl Usage

Below is a list of commonly used systemd commands.

If you are needing to configure a binary as a linux service, see this: Ubuntu Service Creation

Reload Systemd Units

Each time you edit a systemd unit file, you must tell systemd to reload changes.
To reload all systemd unit config files:

sudo systemctl daemon-reload

Console Logs

Systemd logs all console output from running services.
To get console logs from a service, do this:

sudo journalctl -u nginx.service

Reload Unit Files

Tell systemd to reload unit files with this:

sudo systemctl daemon-reload

Start a Service

Start the service with this:

sudo systemctl start servicename

Check Service Status

Verify the service is running with this:

sudo systemctl status servicename

Enable Service Start on Boot

To enable a service to start on boot, do this:

sudo systemctl enable servicename