From 5da93a0dc9cd60af691be9b93b1bb51de35ce915 Mon Sep 17 00:00:00 2001 From: Maxim Styushin Date: Fri, 13 Dec 2024 18:48:11 +0400 Subject: [PATCH] cicd: workaround possible /sys/fs/cgroup issue --- github-actions-tests/mamonsu_build.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/github-actions-tests/mamonsu_build.sh b/github-actions-tests/mamonsu_build.sh index 137e072..1ee5c65 100644 --- a/github-actions-tests/mamonsu_build.sh +++ b/github-actions-tests/mamonsu_build.sh @@ -44,6 +44,12 @@ if [ "${OS%:*}" = "centos" ]; then cat /mamonsu/github-actions-tests/sources/agent_3.5.9.conf > /etc/mamonsu/agent.conf systemctl daemon-reload systemctl restart mamonsu + systemctl status mamonsu + if [[ $? -ne 0 ]]; then + # overcome possible GitHub limitations on /sys/fs/cgroup + /etc/init.d/mamonsu restart + /etc/init.d/mamonsu status + fi sleep 5 echo && echo && echo "mamonsu version:" mamonsu --version