core: when coming back from reload/reexec, reapply all cgroup properties
authorLennart Poettering <lennart@poettering.net>
Thu, 7 Sep 2017 12:32:33 +0000 (14:32 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 22 Sep 2017 13:24:55 +0000 (15:24 +0200)
commit58d83430e1276fe8d1224c2b5f76e756d143a375
tree6f54acc9bcc67e73964e696fa7f4cdafa616f3f1
parent6b659ed87e98a69ab60ce2220f50a64af54a21d3
core: when coming back from reload/reexec, reapply all cgroup properties

With this change we'll invalidate all cgroup settings after coming back
from a daemon reload/reexec, so that the new settings are instantly
applied.

This is useful for the BPF case, because we don't serialize/deserialize
the BPF program fd, and hence have to install a new, updated BPF program
when coming back from the reload/reexec. However, this is also useful
for the rest of the cgroup settings, as it ensures that user
configuration really takes effect wherever we can.
src/core/cgroup.c
src/core/unit.c