[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible node health: more debugging output

Holger Levsen gitlab at salsa.debian.org
Sun Jul 26 00:57:03 BST 2020



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
2b8f9424 by Holger Levsen at 2020-07-26T01:56:56+02:00
reproducible node health: more debugging output

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/reproducible_node_health_check.sh


Changes:

=====================================
bin/reproducible_node_health_check.sh
=====================================
@@ -150,8 +150,9 @@ if ! systemctl is-system-running > /dev/null; then
 	systemctl list-units --state=error,failed > $SERVICES 2>&1
 	echo "$(date -u) - problematic services found:"
 	cat $SERVICES
+	echo "$(date -u) - trying to fix problematic services."
 	for UNIT in acpid rc-local ; do
-		if [ -n "$(grep '$UNIT' $SERVICES)" ] ; then
+		if [ -n "$(grep $UNIT $SERVICES)" ] ; then
 			echo "$(date -u) - resetting failed unit $UNIT..."
 		        sudo systemctl reset-failed $UNIT
 		else
@@ -159,8 +160,8 @@ if ! systemctl is-system-running > /dev/null; then
 		fi
 	done
 	for UNIT in pbuilder_build session- ; do
-		if [ -n "$(grep '$UNIT' $SERVICES)" ] ; then
-			SCOPE=$(grep '$UNIT' $SERVICES | cut -d ' ' -f2)
+		if [ -n "$(grep $UNIT $SERVICES)" ] ; then
+			SCOPE=$(grep $UNIT $SERVICES | cut -d ' ' -f2)
 			echo "$(date -u) - resetting failed scope $SCOPE for $UNIT..."
 		        sudo systemctl reset-failed $SCOPE
 		else



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/2b8f942441438fc00bf461a6abe0b10b4d5761b8

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/2b8f942441438fc00bf461a6abe0b10b4d5761b8
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20200725/fe128fae/attachment.html>


More information about the Qa-jenkins-scm mailing list