Commit 8f2a892d authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible Debian: try systemctl twice, but only output and thus log the 2nd...


reproducible Debian: try systemctl twice, but only output and thus log the 2nd attempt, as this is used for counting local problems

Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent 0c72a564
......@@ -30,7 +30,8 @@ while true ; do
break
fi
SERVICE="reproducible_build@startup.service"
RUNNING=$(systemctl show $SERVICE|grep ^SubState|cut -d "=" -f2)
# try systemctl twice, but only output and thus log the 2nd attempt…
RUNNING=$(systemctl show $SERVICE 2>/dev/null |grep ^SubState|cut -d "=" -f2)
if [ "$RUNNING" != "running" ] ; then
# sometimes systemctl requests time out… handle that gracefully
sleep 23
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment