On 02/04/2025 21:31, J wrote:

    I expect that this mount is a part of local-fs.target, so qbittorrent
    and other processes started from user session should be stopped
    already.

Unfortunately i don't know what the local-fs.target is. Quick search shows that it is probably a part of systemd, which (local-fs.target) is, i guess, responsible for mounting/unmounting partitions?

    systemctl help local-fs.target
    systemctl cat local-fs.target

    Is lingering enabled in logind for the user running qbittorrent?

LIngering? Logind..?

I hope, it gives an answer to my question. For more details see loginctl(1). Actually I was shooting in dark.

In your logs I see
Stopped target local-fs-pre.target - Preparation for Local File Systems.

but no line for local-fs.target despite some entries related to user processes.

In my case (KDE, not GNOME though) in

    systemd-cgls

output all user processes are under user@1000.service.

    systemctl list-dependencies --after user@1000.service

contains local-fs.target. So I expect that all user processes are stopped before stopping local-fs.target. /etc/fstab entries should become dependencies of local-fs.target (besides remote FS). It is consistent with logs on my machine.

I have no idea why systemd units ordering is different on your machine.

Reply via email to