Comment 10 for bug 1160360

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

I don't know if there is a sysvinit equivalent. For non-upstart systems, we could check the cgroup name in /proc/self/cgroup but I think systemd uses cgroup too so a name there wouldn't guarantee if we are or not in a container. Another solution would be to check if inode number of / is not 2 which would work for chroots and lxc.