This is an automated email from the ASF dual-hosted git repository.

jstastnycz pushed a commit to branch radtriste-fix-pipelines
in repository 
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-pipelines.git


The following commit(s) were added to refs/heads/radtriste-fix-pipelines by 
this push:
     new 103d6771 cgroup v2 #2
103d6771 is described below

commit 103d6771d4f57c954d80b82d62403e5d3384e564
Author: jstastny-cz <[email protected]>
AuthorDate: Tue Nov 14 09:32:27 2023 +0100

    cgroup v2 #2
---
 apache-nodes/entrypoint.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/apache-nodes/entrypoint.sh b/apache-nodes/entrypoint.sh
index 81e85501..a1247741 100755
--- a/apache-nodes/entrypoint.sh
+++ b/apache-nodes/entrypoint.sh
@@ -5,14 +5,14 @@ start-docker.sh
 
 # cgroup v2: enable nesting
 if [ -f /sys/fs/cgroup/cgroup.controllers ]; then
+    echo "in cgroupv2 branch"
        # move the processes from the root group to the /init group,
        # otherwise writing subtree_control fails with EBUSY.
        # An error during moving non-existent process (i.e., "cat") is ignored.
-       mkdir -p /sys/fs/cgroup/init
-       xargs -rn1 < /sys/fs/cgroup/cgroup.procs > 
/sys/fs/cgroup/init/cgroup.procs || :
+       sudo mkdir -p /sys/fs/cgroup/init
+       sudo bash -c "xargs -rn1 < /sys/fs/cgroup/cgroup.procs > 
/sys/fs/cgroup/init/cgroup.procs || :"
        # enable controllers
-       sed -e 's/ / +/g' -e 's/^/+/' < /sys/fs/cgroup/cgroup.controllers \
-               > /sys/fs/cgroup/cgroup.subtree_control
+       sudo bash -c "sed -e 's/ / +/g' -e 's/^/+/' < 
/sys/fs/cgroup/cgroup.controllers > /sys/fs/cgroup/cgroup.subtree_control"
 fi
 
 if [ $# -gt 0 ]; then


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to