[systemd-devel] KillUserProcesses timeout
Lennart Poettering
lennart at poettering.net
Mon Apr 27 08:23:33 PDT 2015
On Fri, 24.04.15 20:54, Mikhail Morfikov (mmorfikov at gmail.com) wrote:
> On Fri, 24 Apr 2015 19:04:53 +0200
> Lennart Poettering <lennart at poettering.net> wrote:
>
> > On Tue, 27.01.15 04:28, Mikhail Morfikov (mmorfikov at gmail.com) wrote:
> >
> > Sorry for the really late reply, still trying to work through piles of
> > mail.
> > >
> > > > Hmm, not sure I follow.
> > > >
> > >
> > > It only happens if I'm logged in as root in tmux.
> > >
> > > > The session is shown as closing, that's good. Can you check what
> > > > "systemctl status" reports on the scope unit if this hang happens?
> > > >
> > > > Lennart
> > > >
> > >
> > > I'm not sure if I did the right thing, but there it is.
> > >
> > > After logout:
> > >
> > > ● user-1000.slice
> > > Loaded: loaded
> > > Active: active since Tue 2015-01-27 04:13:31 CET; 8min ago
> > > CGroup: /user.slice/user-1000.slice
> > > ├─session-7.scope
> > > │ ├─32562 gpg-agent -s --enable-ssh-support --daemon
> > > --write-env-file /home/morfik/.gpg-agent-info │ ├─32692 tmux
> > > attach-session -t logi │ ├─32696 bash -c cat /dev/logi | ccze -m
> > > ansi -p syslog -C │ ├─32697 -bash
> > > │ ├─32698 newsbeuter
> > > │ ├─32702 cat /dev/logi
> > > │ ├─32703 ccze -m ansi -p syslog -C
> > > │ ├─34376 su -
> > > │ └─34393 -su
> >
> > This here is probably the issue: you opened a su session from your
> > session, and that keeps things referenced and open.
> >
> > Lennart
> >
> Yep, that's the problem, but after 10-20 secs (I don't remember exactly)
> the session will be closed, and the question was: is there a way to
> make it faster, I mean without the delay so it would be closed just
> after the user logged off.
Hmm that's weird.
Can you reproduce this again and use "loginctl session-status" on all
sessions that remain after logout as well as "loginctl user-status" on
the user in question, and paste this here?
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list