We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f80d8df commit b2c73c6Copy full SHA for b2c73c6
scripts/package-tests/package-tests.sh
@@ -50,6 +50,12 @@ podman run --name "$container_name" -d "$image_name"
50
$container_exec systemctl is-system-running --quiet --wait
51
install_pkg "$container_name" "$PKG_PATH"
52
53
+# If we got to this point, we might need to check the logs of the systemd service
54
+# when it's not properly active. This is added as a trap because the check
55
+# for service status below will return an error exitcode if the service is
56
+# not active, triggering the end of this script because of the shell option `-e`
57
+trap '$container_exec journalctl -u "$SERVICE_NAME" || true' EXIT
58
+
59
# ensure service has started and still running after 5 seconds
60
sleep 5
61
echo "Checking $SERVICE_NAME service status ..."
0 commit comments