From c08dd0d752788b3003cc3161f682e64ff68500f7 Mon Sep 17 00:00:00 2001 From: Ximon Eighteen <3304436+ximon18@users.noreply.github.com> Date: Fri, 10 Oct 2025 13:54:15 +0200 Subject: [PATCH] It helps if one commits the modified file... --- pkg/test-scripts/test-cascade.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/pkg/test-scripts/test-cascade.sh b/pkg/test-scripts/test-cascade.sh index b3c7afdb..e0c86f19 100755 --- a/pkg/test-scripts/test-cascade.sh +++ b/pkg/test-scripts/test-cascade.sh @@ -25,5 +25,23 @@ case $1 in echo -e "\nCASCADED MAN PAGE (first 20 lines only):" man -P cat cascaded | head -n 20 || true + + echo -e "\nCASCADED SERVICE SHOULD BE STOPPED BY DEFAULT:" + if systemctl is-active cascaded; then + echo "Systemd 'cascaded' service is unexpectedly active" + exit 1 + fi + + echo -e "\nTEST SYSTEMD SERVICE STARTUP:" + systemctl start cascaded + + # Give it time to start + sleep 3s + + # Dump the status + systemctl status cascaded + + # Check that the service is active + systemctl is-active cascaded ;; esac