Skip to content

Commit

Permalink
Include the full logs of failed units
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Beekhof <andrew@beekhof.net>
  • Loading branch information
beekhof committed Jul 22, 2020
1 parent 69f6788 commit 0e069c0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ echo "Gathering master failed systemd unit status ..."
mkdir -p "${ARTIFACTS}/unit-status"
sed -n 's/^\* \([^ ]*\) .*/\1/p' < "${ARTIFACTS}/failed-units.txt" | while read -r UNIT
do
systemctl status "${UNIT}" >& "${ARTIFACTS}/unit-status/${UNIT}.txt"
systemctl status --full "${UNIT}" >& "${ARTIFACTS}/unit-status/${UNIT}.txt"
journalctl -u "${UNIT}" > "${ARTIFACTS}/unit-status/${UNIT}.log"
done

echo "Gathering master journals ..."
Expand Down

0 comments on commit 0e069c0

Please sign in to comment.