From 15e4746090a8774ec92aa69f7011a5d21b854b19 Mon Sep 17 00:00:00 2001 From: ReturnFI <151555003+ReturnFI@users.noreply.github.com> Date: Tue, 3 Dec 2024 10:07:43 +0000 Subject: [PATCH] Automatically Restart Hysteria2 --- core/scripts/hysteria2/install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/core/scripts/hysteria2/install.sh b/core/scripts/hysteria2/install.sh index aeee301..c527945 100644 --- a/core/scripts/hysteria2/install.sh +++ b/core/scripts/hysteria2/install.sh @@ -101,6 +101,7 @@ EOF chmod +x /etc/hysteria/core/scripts/hysteria2/kick.sh (crontab -l ; echo "*/1 * * * * /bin/bash -c 'source /etc/hysteria/hysteria2_venv/bin/activate && python3 /etc/hysteria/core/cli.py traffic-status' >/dev/null 2>&1") | crontab - + (crontab -l ; echo "0 3 */3 * * /bin/bash -c 'source /etc/hysteria/hysteria2_venv/bin/activate && python3 /etc/hysteria/core/cli.py restart-hysteria2' >/dev/null 2>&1") | crontab - (crontab -l ; echo "0 */6 * * * /bin/bash -c 'source /etc/hysteria/hysteria2_venv/bin/activate && python3 /etc/hysteria/core/cli.py backup-hysteria' >/dev/null 2>&1") | crontab - (crontab -l ; echo "*/1 * * * * /etc/hysteria/core/scripts/hysteria2/kick.sh >/dev/null 2>&1") | crontab - }