It is useful for the setup program to be able to change or inspect the cgroup directory of the spacetime process. The problem is that by the time the setup program executes, bst will have pivoted into the cgroup namespace, leaving it with no consistent way to know what the path of that cgroup is.
This commit arranges for the path of the cgroup to be defined in the CGROUP_PATH environment variable when the setup program executes.
It is useful for the setup program to be able to change or inspect the cgroup directory of the spacetime process. The problem is that by the time the setup program executes, bst will have pivoted into the cgroup namespace, leaving it with no consistent way to know what the path of that cgroup is.
This commit arranges for the path of the cgroup to be defined in the CGROUP_PATH environment variable when the setup program executes.