]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: rework the "no_gc" unit flag to become a more generic "perpetual" flag
authorLennart Poettering <lennart@poettering.net>
Mon, 24 Oct 2016 19:41:54 +0000 (21:41 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 2 Nov 2016 17:29:59 +0000 (11:29 -0600)
commitf5869324e303a136d7ca802769e8966e8eb26d56
treeb8a55d4cb7c3281ad53fd7672dbc9ab814c8e9df
parentbbeea271172a4664ce9a4a41a7fa3b1ca18dbedd
core: rework the "no_gc" unit flag to become a more generic "perpetual" flag

So far "no_gc" was set on -.slice and init.scope, to units that are always
running, cannot be stopped and never exist in an "inactive" state. Since these
units are the only users of this flag, let's remodel it and rename it
"perpetual" and let's derive more funcitonality off it. Specifically, refuse
enqueing stop jobs for these units, and report that they are "unstoppable" in
the CanStop bus property.
src/core/dbus-unit.c
src/core/scope.c
src/core/slice.c
src/core/unit.c
src/core/unit.h