Constants§
Functions§
- cgroup_
exists πIf cgroup exists or is enabled in kernel, returnb true, else false. - Given a certain controller, checks if it is enabled. For cgroup v1, existence of directory with controller name is checked in cgroup default root hierarchy. e.g if directory β/sys/fs/cgroupβ/cpuβ exists then CPU controller is enabled. For cgroup v2, check the controller list path for the controller name.
- is_
linux_ πmachine - checks if is running in a docker container by checking for docker env file, or if it is running in a kubernetes pod.