← Back to team overview

touch-packages team mailing list archive

[Bug 1355966] Re: [FFE] Implement AbandonScope (etc)

 

This is not Debian bug #756076. That is about cleaning up "closing"
loginctl sessions after logging out (which I implemented in upstream git
now). But this bug is about actually killing the leftover background
processes in the cgroup and the logind session if KillUserProcesses=yes
is set in /etc/systemd/logind.conf. (At least how I understand it).

** Changed in: systemd-shim (Debian)
   Importance: Unknown => Undecided

** Changed in: systemd-shim (Debian)
 Remote watch: Debian Bug tracker #756076 => None

** No longer affects: systemd-shim (Debian)

** Summary changed:

- [FFE] Implement AbandonScope (etc)
+ KillUserProcesses=yes does not work under systemd-shim

** Description changed:

+ When enabling KillUserProcesses=yes in /etc/systemd/logind.conf, user
+ background processes and logind sessions aren't actually being
+ killed/cleaned up after logout. This works fine under systemd, but not
+ under upstart with systemd-shim.
+ 
+ = Original report =
+ 
  Currently, logout produces the following error in upstart systems:
  
  systemd-logind[15351]: Failed to abandon scope session-c7.scope
  systemd-logind[15351]: Failed to abandon session scope: No such interface 'org.freedesktop.systemd1.Scope' on object at path /org/freedesktop/systemd1/unit/session_2dc7_2escope
  
  Whlie the cgroup is being autoremoved when empty,  the more important
  bug is that StopSession won't forcibly kill the cgroup.  These methods
  should be added at some point.

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

Title:
  KillUserProcesses=yes does not work under systemd-shim

Status in “cgmanager” package in Ubuntu:
  Fix Released
Status in “systemd-shim” package in Ubuntu:
  Triaged

Bug description:
  When enabling KillUserProcesses=yes in /etc/systemd/logind.conf, user
  background processes and logind sessions aren't actually being
  killed/cleaned up after logout. This works fine under systemd, but not
  under upstart with systemd-shim.

  = Original report =

  Currently, logout produces the following error in upstart systems:

  systemd-logind[15351]: Failed to abandon scope session-c7.scope
  systemd-logind[15351]: Failed to abandon session scope: No such interface 'org.freedesktop.systemd1.Scope' on object at path /org/freedesktop/systemd1/unit/session_2dc7_2escope

  Whlie the cgroup is being autoremoved when empty,  the more important
  bug is that StopSession won't forcibly kill the cgroup.  These methods
  should be added at some point.

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


References