Add restart status check
This commit is contained in:
@ -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
|
||||
Reference in New Issue
Block a user