On Apr 25, 2022, at 21:17, Tom Horsley <horsley1953(a)gmail.com> wrote:
> On Mon, 25 Apr 2022 16:45:41 -0400
> Jonathan Billings wrote:
>
> if you want it to, it will terminate all user processes *for that session* when it
logs out
This only recently started working moderately well. If I ever ssh'ed into
my desktop for a separate login session, systemd would create some sort
of systemd user daemon that would hang around forever even after I
logged out of the ssh session. Then when I tried to reboot the system,
it would take something like 5 minutes to timeout waiting for the
user daemon to terminate. I think it is finally better now, but it took
years. I started using my own special reboot script that would search
for and kill all systemd user daemons before trying to reboot :-).
I believe KillUserProcesses is “no” by default, so it is unlikely to be related. I had to
enable it on our systems.
The systemd --user daemon does hang around though, and it is likely it is waiting on
terminating some pesky user process that wasn’t terminating properly. It isn’t the
blocking process, it is the daemon trying to terminate it.
--
Jonathan Billings