unit: suppress unnecessary cgroup empty check
authorLennart Poettering <lennart@poettering.net>
Tue, 1 Sep 2015 14:45:34 +0000 (16:45 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 1 Sep 2015 15:20:56 +0000 (17:20 +0200)
commit957c3cf97cd0063a3b78aa068d5351ae3b1b0c0c
tree4ad0d029aea00aff1dc8eb9afed2242d7b4ecff7
parentae2a2c53dd059f0f20fa8080f6b67389be3d3e89
unit: suppress unnecessary cgroup empty check

Rework the "service is good" check, to only check the cgroup state if we
really need to instead of always.

This allows us to suppress going to the cgroupfs for an empty check for
the majority of services.

No functional change.
src/core/service.c