public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Rich Freeman <rich0@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: Re: [gentoo-user] Cannot shutdown or reboot because of logind disconnection
Date: Sat, 17 Sep 2022 09:08:21 -0400	[thread overview]
Message-ID: <CAGfcS_nH29eAN=K=VebKipfqezt6dXnZucYQQkn-MNmOR9Bxog@mail.gmail.com> (raw)
In-Reply-To: <13d32586.18a6.1834b65b725.Coremail.johnstrass@163.com>

On Sat, Sep 17, 2022 at 8:21 AM johnstrass <johnstrass@163.com> wrote:
>
>
> Why is the logind so fragile?

Have you checked your logs.  I'm guessing that the kernel OOM killer
is killing it, and it is kind of hard for a process to not die when
the kernel kills it.

> Why cannot it be  brought up again after the memeory become available again?

I suspect it probably could be - probably not a failure mode upstream
has paid much attention to.  If the OOM killer is loose on your
system, general breakage is to be expected.  It is actually surprising
though that it didn't go after gcc itself.  I'd check the logs.

You probably could tweak the unit setting so that logind is less
likely to get prioritized.  Then it might go after something less
essential like sshd or postfix.  :)

Also possible that it isn't logind itself but something else it uses
for IPC.  Haven't looked into the gory details of how it works.

I'm guessing systemd could be coaxed to shut down without it.  It
might actually do that on its own if you give it time, but I haven't
checked the settings.

-- 
Rich


  reply	other threads:[~2022-09-17 13:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-17  2:40 [gentoo-user] Cannot shutdown or reboot because of logind disconnection johnstrass
2022-09-17  6:15 ` Walter Dnes
2022-09-17  9:37   ` johnstrass
2022-09-17 11:11     ` tastytea
2022-09-17 11:43       ` Michael
2022-09-17 12:21         ` johnstrass
2022-09-17 13:08           ` Rich Freeman [this message]
2022-09-17 15:05             ` Re:Re: " johnstrass
2022-09-17 18:20   ` Frank Steinmetzger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGfcS_nH29eAN=K=VebKipfqezt6dXnZucYQQkn-MNmOR9Bxog@mail.gmail.com' \
    --to=rich0@gentoo.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox