← Back to team overview

touch-packages team mailing list archive

[Bug 1400205] Re: network-manager may start before libsystemd-logind

 

Yes - have a look at the network-manager-logind.patch that's attached to
this bug. That can be applied directly to /etc/init/network-
manager.conf, it just adds a pre-start section to the init script.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1400205

Title:
  network-manager may start before libsystemd-logind

Status in network-manager package in Ubuntu:
  Confirmed

Bug description:
  When NetworkManager starts, it requests systemd login-monitor
  notifications through the libsystemd-login sd_login_monitor_new(3)
  API.

  This API will fail if the systemd-logind service has not been started,
  since it directly accesses directories in /run/systemd. As far as I
  can tell, systemd-logind in Utopic is started on-demand (through DBUS
  service activation). So, there's no guarantee that it has been started
  at the point during boot when NetworkMonitor is started. I attached a
  patch to upstart .conf file with one way to fix it -- it contacts the
  DBUS logind API within pre-start to ensure it has been started.

  NOTE: you will not see the error in syslog -- NetworkManager logs it
  to stderr which is /dev/null. If you enable --no-daemon on
  NetworkManager, the error ("sd_login_monitor_new failed") should get
  logged to /var/log/upstart/network-manager.log. NOTE: even with this
  fix, I saw that sd_login_monitor_new failed -- I believe that's a bug
  in Utopic's systemd
  (https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1400203). I
  had to patch both to resolve a suspend/resume issue for me.

  Seen on:
  Ubuntu 14.10
  NetworkManager 0.9.8.8-0ubuntu28
  libsystemd-login0 208-8ubuntu8

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1400205/+subscriptions


References