Rocky 9.x Debugging systemd issues

From Notes_Wiki
Revision as of 05:02, 10 April 2024 by Saurabh (talk | contribs) (Created page with "Home > Rocky Linux or CentOS > Rocky Linux 9.x > System Administration > Rocky 9.x systemd or systemctl > Rocky 9.x Debugging systemd issues At times we may need to debug systemd if we dont know what is going on or especially if some command is running via systemd but we dont know which unit/service is responsible for running this command. In such cases enable debug option in systemd using: # Edit '<tt>/...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Home > Rocky Linux or CentOS > Rocky Linux 9.x > System Administration > Rocky 9.x systemd or systemctl > Rocky 9.x Debugging systemd issues

At times we may need to debug systemd if we dont know what is going on or especially if some command is running via systemd but we dont know which unit/service is responsible for running this command. In such cases enable debug option in systemd using:

  1. Edit '/etc/systemd/system.conf' and set:
    LogLevel=debug
  2. Reload systemd for changes to take effect:
    systemctl deamon-reload
  3. Then logs should come to /var/log/messages for additional debugging.


Home > Rocky Linux or CentOS > Rocky Linux 9.x > System Administration > Rocky 9.x systemd or systemctl > Rocky 9.x Debugging systemd issues