[Bug 1305395] [NEW] systemd-login service not started on package install

Steve Langasek steve.langasek at canonical.com
Thu Apr 10 03:43:22 UTC 2014


Public bug reported:

In systemd 204-0ubuntu1, debian/rules was changed to not restart logind
on upgrades.

--- debian/rules        2013-05-22 12:09:59 +0000
+++ debian/rules        2013-06-04 10:46:58 +0000
@@ -179,7 +179,7 @@
        dh_installinit --upstart-only --name=udevtrigger --no-start
        dh_installinit --upstart-only --name=udevmonitor --no-start
        dh_installinit --upstart-only --name=udev-fallback-graphics --no-start
-       dh_installinit --name systemd-logind --upstart-only
+       dh_installinit --upstart-only --name systemd-logind --no-start
 
 autoreconf:
        cp -f /usr/share/gtk-doc/data/gtk-doc.make docs/

However, the particular usage here -- --no-start -- also means that the
service is not started on package install.

I found this because I managed to get my system into a state where
logind was not running after boot due to bug #1302264, and then was
confused that it still was not running after upgrading libpam-systemd.
I think what was wanted here was dh_installinit -r (--no-restart-on-
upgrade), not dh_installinit --no-start.

The other thing I notice is that the rationale for this is given as:

   Do not restart logind on package upgrades, as the cgroup organization
changed in this version.

But the *old* prerm script is still going to have stopped logind before
the upgrade, which means that any users that upgraded from raring to
saucy would have had logind stopped on upgrade.  If there were bug
reports about such problems at the time, maybe that explains the
behavior that was seen...

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: systemd-services 204-5ubuntu17
ProcVersionSignature: Ubuntu 3.13.0-19.40-generic 3.13.6
Uname: Linux 3.13.0-19-generic x86_64
ApportVersion: 2.14-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Apr  9 19:12:59 2014
InstallationDate: Installed on 2010-09-24 (1293 days ago)
InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.1)
SourcePackage: systemd
UpgradeStatus: Upgraded to trusty on 2013-10-23 (168 days ago)

** Affects: systemd (Ubuntu)
     Importance: Undecided
     Assignee: Martin Pitt (pitti)
         Status: New


** Tags: amd64 apport-bug trusty

** Changed in: systemd (Ubuntu)
     Assignee: (unassigned) => Martin Pitt (pitti)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1305395

Title:
  systemd-login service not started on package install

Status in “systemd” package in Ubuntu:
  New

Bug description:
  In systemd 204-0ubuntu1, debian/rules was changed to not restart
  logind on upgrades.

  --- debian/rules        2013-05-22 12:09:59 +0000
  +++ debian/rules        2013-06-04 10:46:58 +0000
  @@ -179,7 +179,7 @@
          dh_installinit --upstart-only --name=udevtrigger --no-start
          dh_installinit --upstart-only --name=udevmonitor --no-start
          dh_installinit --upstart-only --name=udev-fallback-graphics --no-start
  -       dh_installinit --name systemd-logind --upstart-only
  +       dh_installinit --upstart-only --name systemd-logind --no-start
   
   autoreconf:
          cp -f /usr/share/gtk-doc/data/gtk-doc.make docs/

  However, the particular usage here -- --no-start -- also means that
  the service is not started on package install.

  I found this because I managed to get my system into a state where
  logind was not running after boot due to bug #1302264, and then was
  confused that it still was not running after upgrading libpam-systemd.
  I think what was wanted here was dh_installinit -r (--no-restart-on-
  upgrade), not dh_installinit --no-start.

  The other thing I notice is that the rationale for this is given as:

     Do not restart logind on package upgrades, as the cgroup
  organization changed in this version.

  But the *old* prerm script is still going to have stopped logind
  before the upgrade, which means that any users that upgraded from
  raring to saucy would have had logind stopped on upgrade.  If there
  were bug reports about such problems at the time, maybe that explains
  the behavior that was seen...

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: systemd-services 204-5ubuntu17
  ProcVersionSignature: Ubuntu 3.13.0-19.40-generic 3.13.6
  Uname: Linux 3.13.0-19-generic x86_64
  ApportVersion: 2.14-0ubuntu1
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Wed Apr  9 19:12:59 2014
  InstallationDate: Installed on 2010-09-24 (1293 days ago)
  InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.1)
  SourcePackage: systemd
  UpgradeStatus: Upgraded to trusty on 2013-10-23 (168 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1305395/+subscriptions



More information about the foundations-bugs mailing list