From c5f26326e200750a4570d3b427e6e33d4e8bc0e1 Mon Sep 17 00:00:00 2001 From: Denis Kudelin <15978569+denis-kudelin@users.noreply.github.com> Date: Wed, 27 Aug 2025 15:09:52 +0300 Subject: [PATCH] Log squid service failure with journalctl --- squid-cache/tests/00_start_iptables_cert.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/squid-cache/tests/00_start_iptables_cert.sh b/squid-cache/tests/00_start_iptables_cert.sh index 5babb5d..2211cd6 100755 --- a/squid-cache/tests/00_start_iptables_cert.sh +++ b/squid-cache/tests/00_start_iptables_cert.sh @@ -4,7 +4,7 @@ if ! command -v systemctl >/dev/null 2>&1; then exit 0; fi if ! systemctl is-system-running >/dev/null 2>&1; then exit 0; fi if ! command -v iptables >/dev/null 2>&1; then exit 0; fi o=$(mktemp) -bash "$SQUID" start >"$o" +bash "$SQUID" start >"$o" || { journalctl -xeu squid.service; exit 1; } [ "$(tail -n1 "$o")" = started ] iptables -t nat -S | grep -q SQUID_LOCAL [ -f /usr/local/share/ca-certificates/squid-mitm.crt ]