Product SiteDocumentation Site

F.9.2. Starting and stopping services

systemctl start sshd.service
systemctl stop sshd.service
systemctl restart sshd.service
These commands will start, stop, and restart the service. The commands may not report the success or failure of the intended action, so we can check the status of the service with systemctl status. systemctl might report helpful information about a misbehaving application in the status, but the application's own logs are more relevant.