KillUserProcesses
KillUserProcesses is a setting in systemd’s logind component that controls whether a user’s processes are terminated when the user logs out or ends a session. When enabled, logind will attempt to kill all processes owned by the user as part of the logout process.
Upon session termination, systemd-logind identifies the user’s processes and sends termination signals. Typically, processes are first
KillUserProcesses is configured in the file /etc/systemd/logind.conf. To enable it, set KillUserProcesses=yes and then restart the
Enabling this option can prevent lingering or orphaned processes after logout and helps reclaim resources, but