fix(scheduler): suppress output for systemctl commands in scheduler setup

This commit is contained in:
ReturnFI
2025-12-14 20:55:21 +00:00
parent e1fb5a1bee
commit 7b2cc94a30

View File

@ -24,9 +24,9 @@ SyslogIdentifier=hysteria-scheduler
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
systemctl daemon-reload systemctl daemon-reload >/dev/null 2>&1
systemctl enable hysteria-scheduler.service systemctl enable hysteria-scheduler.service >/dev/null 2>&1
systemctl start hysteria-scheduler.service systemctl start hysteria-scheduler.service >/dev/null 2>&1
(crontab -l | grep -v "hysteria2_venv.*traffic-status" | grep -v "hysteria2_venv.*backup-hysteria") | crontab - (crontab -l | grep -v "hysteria2_venv.*traffic-status" | grep -v "hysteria2_venv.*backup-hysteria") | crontab -
} }
@ -60,9 +60,9 @@ SyslogIdentifier=hysteria-Auth
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
systemctl daemon-reload systemctl daemon-reload >/dev/null 2>&1
systemctl enable hysteria-auth.service systemctl enable hysteria-auth.service >/dev/null 2>&1
systemctl start hysteria-auth.service systemctl start hysteria-auth.service >/dev/null 2>&1
} }
check_auth_server_service() { check_auth_server_service() {