From e456eac39ed2ff3b93690fad52fba61d1638a8fc Mon Sep 17 00:00:00 2001 From: ReturnFI <151555003+ReturnFI@users.noreply.github.com> Date: Tue, 3 Dec 2024 10:10:18 +0000 Subject: [PATCH] Add restart status check --- core/scripts/hysteria2/restart.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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