NewWork mode: your Claude Code or Codex on work calls, answering from your project's codeSkip to content
Middle+87 views

Как узнать подробности, если статус системного сервиса в Linux плохой?

Practice

AI answer

You can check a service’s status and recent messages like this:

systemctl status service-name
journalctl -u service-name -n 100 --no-pager

For a detailed log from the time of the failure, use, for example, journalctl -u service-name --since '30 minutes ago'; to monitor new messages, use journalctl -fu service-name. systemctl status usually shows only part of the log, so journalctl is useful for troubleshooting.