summaryrefslogtreecommitdiff
path: root/src/sd-daemon.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-08-25 04:58:16 +0200
committerLennart Poettering <lennart@poettering.net>2010-08-25 04:58:24 +0200
commit77d5f105bf63330350c7bddacdeda914f945590f (patch)
tree3db8a21164833c8c0c48ffe6ee7820858d3d19b9 /src/sd-daemon.c
parentee2083d5cacd8b6065b6a38d284f3e28961775a4 (diff)
cgroup: mount cgroup file systems to /sys/fs/cgroup instead of /cgroup
This requires the /sys/fs/cgroup to exist. Current git kernels have this, released kernels need a backport of a single patch.
Diffstat (limited to 'src/sd-daemon.c')
-rw-r--r--src/sd-daemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sd-daemon.c b/src/sd-daemon.c
index 33970f6c41..9b4e010327 100644
--- a/src/sd-daemon.c
+++ b/src/sd-daemon.c
@@ -441,10 +441,10 @@ int sd_booted(void) {
/* We simply test whether the systemd cgroup hierarchy is
* mounted */
- if (lstat("/cgroup", &a) < 0)
+ if (lstat("/sys/fs/cgroup", &a) < 0)
return 0;
- if (lstat("/cgroup/systemd", &b) < 0)
+ if (lstat("/sys/fs/cgroup/systemd", &b) < 0)
return 0;
return a.st_dev != b.st_dev;