mirror of
https://github.com/troglobit/finit.git
synced 2026-10-16 10:39:35 +00:00
configure.ac: make cgroup2 configurable (#406)
This commit is contained in:
2 files changed
+13
No files matched your search
@@ -463,6 +463,11 @@ void cgroup_init(uev_ctx_t *ctx)
|
||||
FILE *fp;
|
||||
int fd;
|
||||
|
||||
#ifndef CGROUP2_ENABLED
|
||||
avail = 0;
|
||||
return;
|
||||
#endif
|
||||
|
||||
if (mount("none", FINIT_CGPATH, "cgroup2", opts, NULL)) {
|
||||
if (errno == ENOENT)
|
||||
logit(LOG_INFO, "Kernel does not support cgroups v2, disabling.");
|
||||
|
||||
Reference in new issue
Block a user