From b4d13c4bd5a492fe28910d837ed0b0da1c349c0e Mon Sep 17 00:00:00 2001 From: Mike Teehan Date: Thu, 2 Jul 2026 14:39:35 +0000 Subject: [PATCH] Add restart-services script to scripts/ directory --- scripts/restart-services.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 scripts/restart-services.sh diff --git a/scripts/restart-services.sh b/scripts/restart-services.sh new file mode 100755 index 0000000..eac5494 --- /dev/null +++ b/scripts/restart-services.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +echo "systemctl restart nginx" +systemctl restart nginx +sleep 1 +echo "systemctl restart vacuum-walld" +systemctl restart vacuum-walld +sleep 1 +echo "systemctl restart vacuum-wall" +systemctl restart vacuum-wall + +# Verify services are running +failed=0 +for svc in nginx vacuum-walld vacuum-wall; do + if ! systemctl is-active --quiet "$svc"; then + echo "ERROR: $svc is not running" >&2 + failed=1 + fi +done + +if [ "$failed" -eq 1 ]; then + exit 1 +fi +