user@.service: don't kill user manager at runlevel switch

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.
This commit is contained in:
Thomas Blume 2018-09-12 15:10:58 +02:00 committed by Lennart Poettering
parent 2b8b1056d9
commit 8c1f04352b
1 changed files with 1 additions and 0 deletions

View 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