A confusão surge de ter os serviços NetworkManager
e network-manager
no sistema:
$ systemctl list-unit-files | grep NetworkManager
NetworkManager-dispatcher.service enabled
NetworkManager-wait-online.service enabled
NetworkManager.service enabled
$ systemctl list-unit-files | grep network-manager
network-manager.service enabled
e journalctl -u
respondendo da mesma forma para unidades sem entradas de log e unidades não existentes:
$ sudo journalctl -u network-manager
-- No entries --
$ sudo journalctl -u there-sure-isnt-a-service-named-like-this
-- No entries --
Existe uma maneira mais simples de colocar os arquivos de log em um certo serviço, usando systemctl status
.
$ sudo systemctl status network-manager.service
● NetworkManager.service - Network Manager
Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2017-08-15 16:12:15 CEST; 2 days ago
Docs: man:NetworkManager(8)
Main PID: 12950 (NetworkManager)
Tasks: 4 (limit: 4915)
CGroup: /system.slice/NetworkManager.service
├─12950 /usr/sbin/NetworkManager --no-daemon
└─13011 /sbin/dhclient -d -q -sf /usr/lib/NetworkManager/nm-dhcp-helper -pf /var/run/dhclient-wlp4s0.pid -lf /var/lib/NetworkManager/dhclient-c19d95a3-6082-4c89-ab
Aug 17 15:09:48 alan-N551JM NetworkManager[12950]: <info> [1502975388.9172] device (wlp4s0): supplicant interface state: associating -> 4-way handshake
Aug 17 15:09:48 alan-N551JM NetworkManager[12950]: <info> [1502975388.9386] device (wlp4s0): supplicant interface state: 4-way handshake -> completed
Aug 17 15:11:48 alan-N551JM NetworkManager[12950]: <info> [1502975508.7640] device (wlp4s0): supplicant interface state: completed -> authenticating
Aug 17 15:11:48 alan-N551JM NetworkManager[12950]: <info> [1502975508.7707] device (wlp4s0): supplicant interface state: authenticating -> associating
Aug 17 15:11:48 alan-N551JM NetworkManager[12950]: <info> [1502975508.7876] device (wlp4s0): supplicant interface state: associating -> 4-way handshake
Aug 17 15:11:48 alan-N551JM NetworkManager[12950]: <info> [1502975508.8064] device (wlp4s0): supplicant interface state: 4-way handshake -> completed
que fornece a opção de preenchimento automático para nomes de serviço e erros para serviços não existentes:
$ sudo systemctl status there-sure-isnt-a-service-named-like-this
Unit there-sure-isnt-a-service-named-like-this.service could not be found.
Observação: tenho certeza de que existe uma conexão entre NetworkManager
e network-manager
, mas não é importante para a resposta.