Guard setting default systemd delegate slice with WITH_SYSTEMD, to limit
the systemd delegation only to --enable-systemd=yes only.
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
};
struct cgroup_group_spec *cgroup_list[CG_HIER_MAX];
+#ifdef WITH_SYSTEMD
int ignore_default_systemd_delegate_slice = 0;
+#endif
int flags = 0;
int ret = 0;
int c;
goto err;
}
- /* this is false always for disable-systemd */
+#ifdef WITH_SYSTEMD
if (!ignore_default_systemd_delegate_slice)
cgroup_set_default_systemd_cgroup();
+#endif
/* read the list of controllers */
while (optind < argc) {