Add restart-services script to scripts/ directory

This commit is contained in:
2026-07-02 14:39:35 +00:00
parent 20266e4a2f
commit b4d13c4bd5
+24
View File
@@ -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