Re: Systemd and inactive sessions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Thu, Nov 1, 2012 at 5:43 PM, Leonid Isaev <lisaev@xxxxxxxxxxxx> wrote:
> Hi,
>
>         I have just noticed that systemd-logind doesn't terminate inactive
> sessions. For example, when I login, do something, then relogin, there are 2
> sessions:
> $ loginctl
>    SESSION        UID USER             SEAT
>          1       1000 lisaev           seat0
>          4       1000 lisaev           seat0
> However, only session 4 is active. Session 1 is inactive and has state=closing:
> $ loginctl show-session 1
> Id=1
> Timestamp=Thu, 2012-11-01 14:42:18 CDT
> TimestampMonotonic=32156744
> DefaultControlGroup=name=systemd:/user/lisaev/1
> VTNr=1
> TTY=tty1
> Remote=no
> Service=login
> Leader=327
> Audit=1
> Type=tty
> Class=user
> Active=no
> State=closing
> KillProcesses=no
> IdleHint=yes
> IdleSinceHint=1351805395173515
> IdleSinceHintMonotonic=6489608483
> Name=lisaev
>
> Is that expected?

Notice that State=closing. That means some process is still running
which was started under that session. The old session will be removed
when all processes in it exit. Run "systemd-cgls" to see what these
processes are.


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux