Se você quiser ver quais serviços falharam ou começaram, use systemctl
:
$ sudo systemctl --type=service
UNIT LOAD ACTIVE SUB DESCRIPTION
accounts-daemon.service loaded active running Accounts Service
acpid.service loaded active running ACPI event daemon
alsa-restore.service loaded active exited Save/Restore Sound Card Stat
apparmor.service loaded active exited LSB: AppArmor initialization
atd.service loaded active running Deferred execution scheduler
avahi-daemon.service loaded active running Avahi mDNS/DNS-SD Stack
binfmt-support.service loaded active exited Enable support for additiona
cgmanager.service loaded active running Cgroup management daemon
click-system-hooks.service loaded active exited Run Click system-level hooks
colord.service loaded active running Manage, Install and Generate
console-setup.service loaded active exited Set console font and keymap
cron.service loaded active running Regular background program p
cups-browsed.service loaded active running Make remote CUPS printers av
cups.service loaded active running CUPS Scheduler
dbus.service loaded active running D-Bus System Message Bus
deluge-web.service loaded active running Deluge Bittorrent Client Web
deluged.service loaded active running Deluge Bittorrent Client Dae
ebtables.service loaded active exited LSB: ebtables ruleset manage
[email protected] loaded active running Getty on tty1
grub-common.service loaded active exited LSB: Record successful boot
Abre em um pager por padrão.
Se você quiser ver o que falhou durante a inicialização, use novamente systemctl
:
$ systemctl --state=failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● var-www-archlinux.mount loaded failed failed /var/www/archlinux
● openvpn.service loaded failed failed OpenVPN service
● [email protected] loaded failed failed OpenVPN connection to auth-ldap
● [email protected] loaded failed failed OpenVPN connection to server
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
4 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
Observe que isso não está limitado apenas a serviços - montagens com falha, e outras unidades systemd também são listadas. Você pode restringir a saída a um tipo de unidade systemd usando a opção --type
.
Além disso, alguns daemons apenas emitem informações úteis de diagnóstico no console e não no log (talvez o systemd lide com isso melhor).
systemd-journald
faz um trabalho muito completo de capturar todas as saídas de serviços.