summaryrefslogtreecommitdiff
path: root/units/systemd-user-sessions.service.in
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-08-06 23:33:29 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-08-07 10:02:05 +0200
commitbbac7da2b379dfe951db23278ebe8a728ecce7a5 (patch)
treef9077db3e485ca8b8281b899815b7ccb4915f1ff /units/systemd-user-sessions.service.in
parentfdc6c4f49c808baafb9bb0e01b617b4f3471f46b (diff)
downloadsystemd-bbac7da2b379dfe951db23278ebe8a728ecce7a5.tar.gz
units: order systemd-user-sessions.service after home.mount
This should make /home as automount work reasonably well. If /home is an automount this has little effect at boot, because if the automount is not triggered it doesn't matter how the associated mount is ordered. It does matter at shutdown however, where home.mount is likely active now. There the ordering means we'll end sessions first, and only then deactivate home.mount. Fixes: #16291
Diffstat (limited to 'units/systemd-user-sessions.service.in')
-rw-r--r--units/systemd-user-sessions.service.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/units/systemd-user-sessions.service.in b/units/systemd-user-sessions.service.in
index 6d585eb0a1..13de728b1d 100644
--- a/units/systemd-user-sessions.service.in
+++ b/units/systemd-user-sessions.service.in
@@ -10,7 +10,7 @@
[Unit]
Description=Permit User Sessions
Documentation=man:systemd-user-sessions.service(8)
-After=remote-fs.target nss-user-lookup.target network.target
+After=remote-fs.target nss-user-lookup.target network.target home.mount
[Service]
Type=oneshot