units: set StopWhenUnneeded= for the user slice units too

We'd like them to go away, just like the user-runtime-dir@.service when
they aren't needed anymore.
This commit is contained in:
Lennart Poettering 2018-08-03 20:19:38 +02:00
parent 4417640013
commit 1007473b49
1 changed files with 1 additions and 0 deletions

View File

@ -11,6 +11,7 @@
Description=User Slice of UID %j
Documentation=man:user@.service(5)
After=systemd-user-sessions.service
StopWhenUnneeded=yes
[Slice]
TasksMax=33%