How to Manage Services With systemctl in Linux
systemctl controls systemd services — starting, stopping, enabling, and checking the status of background processes.
Published October 1, 2026
systemctl controls systemd services: start, stop, restart, reload, enable at boot and check status.
How it works
Units are defined in /etc/systemd/system or /lib/systemd/system. enable makes a service start at boot; start runs it now.
After editing a unit file run systemctl daemon-reload.
Try it
sudo systemctl status nginx
Active: active (running)
sudo systemctl restart nginx
Practical examples
Start, stop, restart
sudo systemctl start nginx
sudo systemctl stop nginx
sudo systemctl restart nginxEnable at boot
sudo systemctl enable --now nginxList failed units
systemctl --failedCustom service
[Service]
ExecStart=/usr/bin/node /srv/app/server.js
Restart=always
[Install]
WantedBy=multi-user.targetCommon mistakes
- Forgetting daemon-reload after editing units.
- Using start but not enable and losing it at reboot.
- Not reading logs when status shows failed.
Key takeaways
- start now, enable at boot.
- daemon-reload after unit edits.
- Check journalctl for failures.
FAQ
restart vs reload?
reload re-reads config without dropping connections when supported.
How do I view logs?
journalctl -u service.