]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
user@.service: don't kill user manager at runlevel switch 10071/head
authorThomas Blume <thomas.blume@suse.com>
Wed, 12 Sep 2018 13:10:58 +0000 (15:10 +0200)
committerThomas Blume <thomas.blume@suse.com>
Thu, 13 Sep 2018 06:22:58 +0000 (08:22 +0200)
Loggin in as root user and then switching the runlevel results in a
stop of the user manager, even though the user ist still logged in.
That leaves a broken user session.

Adding "IgnoreOnIsolate=true" to user@.service fixes this.

units/user@.service.in

index f840c4114c02bbbaf820763509eb2c22134595fa..ca98c0515df5bb7b45d77afba55b84e88892068e 100644 (file)
@@ -12,6 +12,7 @@ Description=User Manager for UID %i
 Documentation=man:user@.service(5)
 After=systemd-user-sessions.service user-runtime-dir@%i.service dbus.service
 Requires=user-runtime-dir@%i.service
+IgnoreOnIsolate=yes
 
 [Service]
 User=%i