Score:0

Enabling user linger causes Rocky Linux 9 to hang on shut down until power button is pressed

in flag

Rebooting Rocky Linux 9 is very fast until I enable user linger:

loginctl enable-linger foo

I haven't added any new services to run under the foo user.

After this change, reboot, shutdown, poweroff commands cause the system to mostly shut down, but then the process hangs. If I forcibly shut down the VM via the hypervisor, the system reboots right away. In the logs from the previous boot, I often see something like:

...
Jan 31 03:28:41 rockylinux-s-1vcpu-1gb-nyc3-01 systemd-logind[696]: Power key pressed short.
Jan 31 03:28:41 rockylinux-s-1vcpu-1gb-nyc3-01 systemd-logind[696]: Powering Off...
Jan 31 03:28:41 rockylinux-s-1vcpu-1gb-nyc3-01 systemd-logind[696]: System is powering down.
...

Once those messages appear, the shutdown or reboot finishes quickly. Running the following command:

loginctl disable-linger foo

makes rebooting fast again. Is there a way around this behavior, or is this a bug?

Edit: I tested this on Ubuntu 22.10, and it's not a problem there, so it may be a bug, or specific to a particular version of Systemd. Both OSes have similar Systemd package versions: 251.4-1ubuntu7 and 250-12.el9_1.1.

Score:0
in flag

This bug appears to have been resolved by an update within the last couple of months.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.