Good_speed
(usa Debian)
Enviado em 15/04/2019 - 07:26h
FurretUber escreveu:
Aparentemente, o serviço funcionará corretamente se o sistema utiliza NetworkManager, pois
NetworkManager-wait-online.service é específico. Uma alternativa mais genérica seria utilizar
network-online.target ao invés de
NetworkManager-wait-online.service, para casos onde seja utilizado systemd-networkd, connman ou outros.
Uma referência interessante:
https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/
FurretUber, Bom dia
Obrigado pelo seu retorno, o linux mint não utiliza o serviço systemd-networkd, pelo menos nos teste que realizei!!!
root@vd-lmc19-coor2:/home/administrador# systemctl status systemd-networkd-wait-online.service
● systemd-networkd-wait-online.service - Wait for Network to be Configured
Loaded: loaded (/lib/systemd/system/systemd-networkd-wait-online.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:systemd-networkd-wait-online.service(8)
root@vd-lmc19-coor2:/home/administrador# systemctl status NetworkManager-wait-online.service
● NetworkManager-wait-online.service - Network Manager Wait Online
Loaded: loaded (/lib/systemd/system/NetworkManager-wait-online.service; enabled; vendor preset: enabled)
Active:
active (exited) since Mon 2019-04-15 07:06:27 -03; 14min ago
Docs: man:nm-online(1)
Process: 796 ExecStart=/usr/bin/nm-online -s -q --timeout=30 (code=exited, status=0/SUCCESS)
Main PID: 796 (code=exited, status=0/SUCCESS)
abr 15 07:06:24 vd-lmc19-coor2 systemd[1]: Starting Network Manager Wait Online...
abr 15 07:06:27 vd-lmc19-coor2 systemd[1]: Started Network Manager Wait Online.
root@vd-lmc19-coor2:/home/administrador# systemctl list-unit-files | grep -i network
network-manager.service enabled
networkd-dispatcher.service enabled
networking.service enabled
NetworkManager-dispatcher.service enabled
NetworkManager-wait-online.service enabled
NetworkManager.service enabled
systemd-networkd-wait-online.service disabled
systemd-networkd.service disabled
systemd-networkd.socket disabled
network-online.target static
network-pre.target static
network.target static
Atenciosamente,