diff --git a/src/core/cgroup.c b/src/core/cgroup.c index e0eb184..f1ce070 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -2936,6 +2936,9 @@ int unit_cgroup_freezer_action(Unit *u, FreezerAction action) { assert(u); assert(IN_SET(action, FREEZER_FREEZE, FREEZER_THAW)); + if (!cg_freezer_supported()) + return 0; + if (!u->cgroup_realized) return -EBUSY;