Add restart status check

This commit is contained in:
ReturnFI
2024-12-03 10:10:18 +00:00
parent 15e4746090
commit e456eac39e

View File

@ -1,4 +1,8 @@
#!/bin/bash
python3 /etc/hysteria/core/cli.py traffic-status > /dev/null 2>&1
systemctl restart hysteria-server.service
if systemctl restart hysteria-server.service; then
echo "Hysteria server restarted successfully."
else
echo "Error: Failed to restart the Hysteria server."
fi