diff --git a/core/scripts/hysteria2/restart.sh b/core/scripts/hysteria2/restart.sh index fa4be6c..d3c5d8d 100644 --- a/core/scripts/hysteria2/restart.sh +++ b/core/scripts/hysteria2/restart.sh @@ -1,4 +1,8 @@ #!/bin/bash python3 /etc/hysteria/core/cli.py traffic-status > /dev/null 2>&1 -systemctl restart hysteria-server.service \ No newline at end of file +if systemctl restart hysteria-server.service; then + echo "Hysteria server restarted successfully." +else + echo "Error: Failed to restart the Hysteria server." +fi \ No newline at end of file