Skip to content

Commit

Permalink
Add restart status check
Browse files Browse the repository at this point in the history
  • Loading branch information
ReturnFI committed Dec 3, 2024
1 parent 15e4746 commit e456eac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/scripts/hysteria2/restart.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e456eac

Please sign in to comment.