Modify restart-hysteria2
This commit is contained in:
@ -71,11 +71,6 @@ def update_hysteria2():
|
||||
|
||||
@cli.command('restart-hysteria2')
|
||||
def restart_hysteria2():
|
||||
# save traffic status before restarting hysteria2
|
||||
# ignore the traffic_status prints
|
||||
f = io.StringIO()
|
||||
with redirect_stdout(f):
|
||||
traffic.traffic_status()
|
||||
run_cmd(['bash', Command.RESTART_HYSTERIA2])
|
||||
|
||||
|
||||
|
||||
@ -1 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
python3 /etc/hysteria/core/cli.py traffic-status > /dev/null 2>&1
|
||||
systemctl restart hysteria-server.service
|
||||
Reference in New Issue
Block a user