core: Move user units into app.slice by default
authorBenjamin Berg <bberg@redhat.com>
Tue, 28 Jul 2020 17:12:56 +0000 (19:12 +0200)
committerBenjamin Berg <bberg@redhat.com>
Fri, 23 Oct 2020 07:58:41 +0000 (09:58 +0200)
commit7f3b86a4979bb84566b46006f3e04c1033504585
tree4732181f6572cceeb13543486003961b111b5747
parent0b432bdc2ebdbee63a2f6820916d18f33b4afda2
core: Move user units into app.slice by default

This changes the default from putting all units into the root slice to
placing them into the app slice in the user manager. The advantage is
that we get the right behaviour in most cases, and we'll need special
case handling in all other cases anyway.

Note that we have currently defined that applications *should* start
their unit names with app-, so we could also move only these by creating
a drop-in for app-.scope and app-.service.
However, that would not answer the question on how we should manage
session.slice. And we would end up placing anything that does not fit
the system (e.g. anything started by dbus-broker currently) into the
root slice.
src/core/unit.c