File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed
Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -28,4 +28,13 @@ start_pre() {
2828 eerror " symbolic links to it for the users you want to start"
2929 return 1
3030 fi
31+
32+ if [ -d " $cgroup_path " ]; then
33+ local user_cgroup=${cgroup_path} /daemons
34+
35+ mkdir " $user_cgroup "
36+ chown " $user :$user " " $user_cgroup "
37+
38+ cgroup_path=" ${cgroup_path} /system"
39+ fi
3140}
Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ if [ -d "/sys/fs/cgroup/openrc.${RC_SVCNAME}" ]; then
2323 cgroup_path=" ${cgroup_root} /openrc.${RC_SVCNAME} "
2424fi
2525
26+ if yesno " $RC_USER_SERVICES " && [ -d " ${cgroup_path} /daemons" ]; then
27+ cgroup_path=" ${cgroup_path} /daemons"
28+ fi
29+
2630cgroup_running ()
2731{
2832 [ -d " ${cgroup_path} " ] ||
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ sourcex "@LIBEXECDIR@/sh/functions.sh"
5757sourcex " @LIBEXECDIR@/sh/rc-functions.sh"
5858case $RC_SYS in
5959 PREFIX|SYSTEMD-NSPAWN) ;;
60- * ) yesno " $RC_USER_SERVICES " || sourcex -e " @LIBEXECDIR@/sh/cgroups.sh" ;;
60+ * ) sourcex -e " @LIBEXECDIR@/sh/cgroups.sh" ;;
6161esac
6262
6363# Support LiveCD foo
You can’t perform that action at this time.
0 commit comments