Linux

systemctl

CautionManage services

systemctl status <svc>

Check status and start/stop/enable services.

Examples

  • systemctl status nginxCheck nginx status
  • systemctl restart sshdRestart sshd

Syntax

systemctl status|start|stop|restart|enable <service>

Before you run it

start/stop/restart affect running services.

Used when you see

Service won't start / keeps crashing
1
Check service statusactive vs failed
See the whole flow →
Clock drift / NTP failure
3
Restart the time service to force resync
See the whole flow →
Node is NotReady
3
Verify kubelet on the node
See the whole flow →

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store