A
cd ..
System

Systemctl Service Management

Manage systemd services: start, stop, restart, and troubleshoot.

2025-09-01
systemd, linux, services

Start a service

sudo systemctl start nginx

Stop a service

sudo systemctl stop nginx

Restart a service

sudo systemctl restart nginx

Reload service configuration

sudo systemctl reload nginx

Enable service at boot

sudo systemctl enable nginx

Disable service at boot

sudo systemctl disable nginx

Check service status

sudo systemctl status nginx

View service logs

sudo journalctl -u nginx

Follow service logs (real-time)

sudo journalctl -u nginx -f

List all services

systemctl list-units --type=service

List failed services

systemctl --failed

Reload systemd daemon

After editing service files:

sudo systemctl daemon-reload

Check if service is active

systemctl is-active nginx

Check if service is enabled

systemctl is-enabled nginx

Was this useful?

Share with your team

Browse More