[arch-general] Bug NetworkManager when restart NetworkManager service
Kyle Terrien
kyleterrien at gmail.com
Tue Apr 8 19:21:19 EDT 2014
On 04/08/2014 04:31 AM, Maykel Franco wrote:
> Hi, I change for example dns in networkmanager, when restart
> NetworkManager , "systemctl restart NetworkManager" the network not
> works...
>
> ...
>
> I have reboot my computer for network on again.
>
> Is a bug networkmanager?
>
> The version is:
>
> maykel-arch /home/maykel # NetworkManager --version
> 0.9.8.8
>
> Thanks in advanced.
>
Network goes down because NetworkManager leaves dhcpcd running. In fact
my network remains up after running "systemctl stop
NetworkManager.service" because dhcpcd is left managing enp0s25.
If NetworkManager sees dhcpcd managing an interface when NetworkManager
starts up, NetworkManager does funny things.
So, why does "systemctl stop NetworkManager.service" leave dhcpcd
running?
The workaround:
sudo systemctl stop NetworkManager.service
sudo killall dhcpcd
sudo systemctl start NetworkManager.service
Here is a shell session where I (effectively) do the above:
kyle at landru ~ $ sudo systemctl stop NetworkManager.service
[sudo] password for kyle:
kyle at landru ~ $ systemctl status NetworkManager.service
● NetworkManager.service - Network Manager
Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled)
Active: inactive (dead) since Tue 2014-04-08 15:41:08 PDT; 8s ago
Process: 2792 ExecStart=/usr/bin/NetworkManager --no-daemon (code=exited,
status=0/SUCCESS)
Main PID: 2792 (code=exited, status=0/SUCCESS)
Apr 08 15:14:14 landru NetworkManager[2792]: <info> Activation (enp0s25) suc....
Apr 08 15:14:21 landru dhcpcd[2822]: enp0s25: no IPv6 Routers available
Apr 08 15:14:29 landru NetworkManager[2792]: <info> (enp0s25): IP6 addrconf ....
Apr 08 15:14:29 landru NetworkManager[2792]: <info> Activation (enp0s25) Sta....
Apr 08 15:14:29 landru NetworkManager[2792]: <info> Activation (enp0s25) Sta....
Apr 08 15:14:29 landru NetworkManager[2792]: <info> Activation (enp0s25) Sta....
Apr 08 15:41:08 landru systemd[1]: Stopping Network Manager...
Apr 08 15:41:08 landru NetworkManager[2792]: <info> caught signal 15, shutti....
Apr 08 15:41:08 landru NetworkManager[2792]: <info> Writing DNS information ...f
Apr 08 15:41:08 landru systemd[1]: Stopped Network Manager.
Hint: Some lines were ellipsized, use -l to show in full.
kyle at landru ~ $ systemctl status | grep -A 1 NetworkManager.service
│ │ └─3623 grep --color=auto -A 1 NetworkManager.service
│ └─user at 2290.service
--
├─NetworkManager.service
│ └─2822 /usr/bin/dhcpcd -B -K -L -G -c
/usr/lib/networkmanager/nm-dhcp-client.action enp0s25
kyle at landru ~ $ sudo kill 2822
kyle at landru ~ $ systemctl status | grep -A 1 NetworkManager.service
│ │ └─3631 grep --color=auto -A 1 NetworkManager.service
│ └─user at 2290.service
kyle at landru ~ $ systemctl status NetworkManager.service
● NetworkManager.service - Network Manager
Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled)
Active: inactive (dead) since Tue 2014-04-08 15:41:08 PDT; 4min 25s ago
Process: 2792 ExecStart=/usr/bin/NetworkManager --no-daemon (code=exited,
status=0/SUCCESS)
Main PID: 2792 (code=exited, status=0/SUCCESS)
Apr 08 15:14:29 landru NetworkManager[2792]: <info> (enp0s25): IP6 addrconf ....
Apr 08 15:14:29 landru NetworkManager[2792]: <info> Activation (enp0s25) Sta....
Apr 08 15:14:29 landru NetworkManager[2792]: <info> Activation (enp0s25) Sta....
Apr 08 15:14:29 landru NetworkManager[2792]: <info> Activation (enp0s25) Sta....
Apr 08 15:41:08 landru systemd[1]: Stopping Network Manager...
Apr 08 15:41:08 landru NetworkManager[2792]: <info> caught signal 15, shutti....
Apr 08 15:41:08 landru NetworkManager[2792]: <info> Writing DNS information ...f
Apr 08 15:41:08 landru systemd[1]: Stopped Network Manager.
Apr 08 15:43:59 landru dhcpcd[2822]: received signal TERM from PID 3626, st...ng
Apr 08 15:43:59 landru dhcpcd[2822]: enp0s25: removing interface
Hint: Some lines were ellipsized, use -l to show in full.
kyle at landru ~ $ sudo systemctl start NetworkManager.service
kyle at landru ~ $
--Kyle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20140408/535897c5/attachment-0001.asc>
More information about the arch-general
mailing list