summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_worker.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/reproducible_worker.sh')
-rwxr-xr-xbin/reproducible_worker.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/reproducible_worker.sh b/bin/reproducible_worker.sh
index c0a9d83e..99b597ae 100755
--- a/bin/reproducible_worker.sh
+++ b/bin/reproducible_worker.sh
@@ -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