IT Toolbox
Menu
HomeHow to scan a systemd service that does not start
Guide

How to scan a systemd service that does not start

systemctl gives the immediate state of the service while journalctl often explains why the main process has stopped

TopicIT resources → About 1 min read

systemctl gives the immediate state of the service while journalctl often explains why the main process has stopped.

Steps.

  1. Read the status – Run systemctl status on the service.
  2. View the dedicated logs — Use journalctl -u for the period of the incident.
  3. Check configuration — Run the service specific test command if it exists.
  4. Control of dependencies and ports — Check files, permissions, DNS and occupied ports.
  5. Restart after correction — Re-launch only after identifying and correcting the error.

Commands

systemctl status nginx
journalctl -u nginx --since '-30 min'
ss -lntup

Key takeaways

  • A repeat ROUND can erase the useful context of the first failure.
  • Use journalctl –(3) to reduce noise.
  • Check configuration changes just before the incident.
Support the development of BAOI Hosting, domains and new IT resources.
❤️ Support BAOI

My favorites