summaryrefslogtreecommitdiff
path: root/sys-kernel/cgroup-systemd/files
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel/cgroup-systemd/files')
-rw-r--r--sys-kernel/cgroup-systemd/files/cgroup-systemd12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys-kernel/cgroup-systemd/files/cgroup-systemd b/sys-kernel/cgroup-systemd/files/cgroup-systemd
new file mode 100644
index 0000000..faccf09
--- /dev/null
+++ b/sys-kernel/cgroup-systemd/files/cgroup-systemd
@@ -0,0 +1,12 @@
+#!/sbin/openrc-run
+
+description="Mounts systemd's cgroup."
+
+depend() {
+ need root
+}
+
+start() {
+ mkdir -p /sys/fs/cgroup/systemd
+ mount -t cgroup -o none,name=systemd systemd /sys/fs/cgroup/systemd
+}