diff options
-rw-r--r-- | src/core/cgroup.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/cgroup.c b/src/core/cgroup.c index e0eb184fd2..f1ce070f9a 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; |