Beginner Package: systemd

systemctl start / stop

Start, stop or restart a service right now.

Syntax

systemctl start|stop|restart unit

Description

These sub-commands control a unit's running state immediately, without affecting whether it is enabled at boot. restart stops then starts a unit; reload asks a service to reread its configuration without a full restart, when supported.

Examples

sudo systemctl start nginx
Start a service now
sudo systemctl stop nginx
Stop a running service
sudo systemctl restart nginx
Stop and start a service (e.g. after a config change)
sudo systemctl reload nginx
Ask a service to reload config without dropping connections

Applies to

Ubuntu Debian Linux Mint RHEL CentOS / Rocky / AlmaLinux Fedora Arch Linux openSUSE