-
Bug
-
Resolution: Unresolved
-
Blocker
-
None
-
CentOS Stream 9
-
None
-
Moderate
-
rhel-systemd
-
ssg_core_services
-
8
-
None
-
CentOS Stream
-
None
-
None
-
None
-
None
What were you trying to do that didn't work?
I have a server that uses automount NFS home directories for network users. If I run "sudo reboot" from a network user login, the shutdown hangs for 2 minutes waiting for the user session to exit. Digging around a bit, it appears that the issue is that the user's systemd user session hangs around for about 10 seconds after logout, but the reboot call shuts down automount and umounts the NFS home before that, at which point the systemd user session doesn't shut down.
Running "sudo sh -c '(sleep 11; reboot) &'" reboots without the 2-minute hang, as does running "sudo reboot" from a non-network user login.
What is the impact of this issue to you?
Reboots take 2 minutes longer than they should, waiting for a useless user session shutdown.
Please provide the package NVR for which the bug is seen:
systemd-252-46.el9_5.2.0.1.x86_64
How reproducible is this bug?:
Every time
Steps to reproduce
- Log in with a network user
- sudo reboot
- Watch shutdown take 2 extra minutes
Expected results
A reboot happens immediately.
Actual results
Reboot stops for 2 minutes "waiting for user session"