Files
Blitz-Proxy/core/scripts/hysteria2/restart.sh
2024-12-03 10:10:18 +00:00

8 lines
245 B
Bash

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