Some things about the systemd of Linux

Source: Internet
Author: User

1. Output the unit that failed to run:

Systemctl--failed

2. All the unit files are stored in both the/usr/lib/systemd/system/and/etc/systemd/system/directories, but the latter are of higher priority. Systemctl List-unit-files can list all the units.

3. Check whether the unit is configured to start automatically: Systemctl is-enabled < unit name >

4. There is a unit suffix name is target, boot boot into the goal is default.target, this file by default is the Graphical.target symbolic link.

5. SYSTEMD provides its own log system, called Journal, using the Journalctl command can view the log, after the counter-check, the command is from the SYSTEMD this package, popularly speaking is SYSTEMD comes with.

Journal configuration file:/etc/systemd/journald.conf, which can define the location of the log file storage, the default is/var/log/journal, the directory is part of the SYSTEMD software package, if deleted, SYSTEMD will not It is created automatically until the next upgrade so the SYSTEMD software package is created, and if the directory is missing, Systemd writes the log to/run/systemd/journal, which means that the log disappears after the boot.

6. Show all logs after this startup: Journalctl-b

Some things about the systemd of Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.