diff --git a/src/core/cgroup.c b/src/core/cgroup.c index 6af08e78e6c..962f821925c 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -3602,6 +3602,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;