#!/bin/bash systemctl restart nginx sleep 1 systemctl restart vacuum-walld sleep 1 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