Public bug reported: (forwarded from the relevant bug report raised in Debian BTS and adapted for upstart as PID1)
Daemons which are not spawned via an upstart job (eg. those with initscripts, ifupdown hooks and similar) are not detached from the current logind session cgroups. This causes the session to linger in the closing state until the background processes are either terminated or manually moved by root into the root cgroups, so seat ACLs are not released. A (very crude) workaround on Debian Jessie is using cgm movepidabs / $$ to "break out" of the current session before performing any administrative action which could result in a daemon (re)start, but cgmanager is not installed by default on Trusty and the version of cgm shipped with it lacks the movepidabs subcommand (even though the MovePidAbs method in the DBus interface does exist). Note that this affects anything that uses service, invoke-rc.d, ifupdown hooks (like ifup on PPPoE links) or initscripts directly. Upstart jobs are not affected because they inherit their cgroup set from PID1 (which lives in the root cgroup). Nota bene: I'm raising the issue on systemd-shim on advice from its maintainer, even though it's unclear at what level this behavior should be addressed. ProblemType: Bug DistroRelease: Ubuntu 14.04 Package: systemd-shim 6-2bzr1 ProcVersionSignature: Ubuntu 3.13.0-39.66-generic 3.13.11.8 Uname: Linux 3.13.0-39-generic x86_64 NonfreeKernelModules: nvidia ApportVersion: 2.14.1-0ubuntu3.5 Architecture: amd64 Date: Fri Nov 14 10:36:01 2014 InstallationDate: Installed on 2012-09-30 (774 days ago) InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120823.1) SourcePackage: systemd-shim UpgradeStatus: Upgraded to trusty on 2014-08-18 (87 days ago) ** Affects: systemd-shim (Ubuntu) Importance: Undecided Status: New ** Affects: systemd-shim (Debian) Importance: Unknown Status: Unknown ** Tags: amd64 apport-bug trusty ** Bug watch added: Debian Bug tracker #769483 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=769483 ** Also affects: systemd-shim (Debian) via http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=769483 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1392642 Title: Daemons are restarted in the current session cgroups To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/systemd-shim/+bug/1392642/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs