Using systemctl - The Ultimate Guide To Logging
Using systemctl - The Ultimate Guide To Logging
loggly.com
Listing Units
arp-ethers.service disabled
auditd.service enabled
[email protected] disabled
1 de 7 23/3/23, 19:02
Using systemctl - The Ultimate Guide To Logging about:reader?url=https%3A%2F%2Ffanyv88.com%3A443%2Fhttps%2Fwww.loggly.co...
avahi-daemon.service enabled
brandbot.service static
...
console-getty.service disabled
console-shell.service disabled
cpupower.service disabled
crond.service enabled
...
firewalld.service enabled
[email protected] enabled
...
nginx.service enabled
...
rsyncd.service disabled
rsyslog.service enabled
sshd-keygen.service static
2 de 7 23/3/23, 19:02
Using systemctl - The Ultimate Guide To Logging about:reader?url=https%3A%2F%2Ffanyv88.com%3A443%2Fhttps%2Fwww.loggly.co...
sshd.service enabled
[email protected] static
...
The output shows services that are currently loaded and active
in memory. However, some services could start and then exit
after spawning another service or doing some function. They
may still be active, as shown below:
3 de 7 23/3/23, 19:02
Using systemctl - The Ultimate Guide To Logging about:reader?url=https%3A%2F%2Ffanyv88.com%3A443%2Fhttps%2Fwww.loggly.co...
Failed Units
# systemctl --failed
The output may or may not show any results. But if there are
units that failed to load or activate, they’ll be listed here. In the
4 de 7 23/3/23, 19:02
Using systemctl - The Ultimate Guide To Logging about:reader?url=https%3A%2F%2Ffanyv88.com%3A443%2Fhttps%2Fwww.loggly.co...
If you suspect a particular service failed, you can use the is-
failed parameter with systemctl. Taking the example of
apache2.service, if we execute the following command:
failed
The output is shown as failed. The same test against the crond
service shows us it did not fail.
active
Enabled Units
5 de 7 23/3/23, 19:02
Using systemctl - The Ultimate Guide To Logging about:reader?url=https%3A%2F%2Ffanyv88.com%3A443%2Fhttps%2Fwww.loggly.co...
Systemd-analyze
# systemd-analyze
To see what time each service unit took to load during boot, use
the systemd-analyze command with the blame option.
# systemd-analyze blame
25.265s accounts-daemon.service
2.161s mysql.service
1.448s cloud-init-local.service
1.221s systemd-udev-settle.service
1.014s ifup-wait-all-auto.service
853ms cloud-init.service
697ms cloud-config.service
...
6 de 7 23/3/23, 19:02
Using systemctl - The Ultimate Guide To Logging about:reader?url=https%3A%2F%2Ffanyv88.com%3A443%2Fhttps%2Fwww.loggly.co...
7 de 7 23/3/23, 19:02