Skip to content
This repository was archived by the owner on Jul 8, 2026. It is now read-only.

Commit 7b2cc94

Browse files
committed
fix(scheduler): suppress output for systemctl commands in scheduler setup
1 parent e1fb5a1 commit 7b2cc94

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

core/scripts/scheduler.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ SyslogIdentifier=hysteria-scheduler
2424
WantedBy=multi-user.target
2525
EOF
2626

27-
systemctl daemon-reload
28-
systemctl enable hysteria-scheduler.service
29-
systemctl start hysteria-scheduler.service
27+
systemctl daemon-reload >/dev/null 2>&1
28+
systemctl enable hysteria-scheduler.service >/dev/null 2>&1
29+
systemctl start hysteria-scheduler.service >/dev/null 2>&1
3030
(crontab -l | grep -v "hysteria2_venv.*traffic-status" | grep -v "hysteria2_venv.*backup-hysteria") | crontab -
3131
}
3232

@@ -60,9 +60,9 @@ SyslogIdentifier=hysteria-Auth
6060
WantedBy=multi-user.target
6161
EOF
6262

63-
systemctl daemon-reload
64-
systemctl enable hysteria-auth.service
65-
systemctl start hysteria-auth.service
63+
systemctl daemon-reload >/dev/null 2>&1
64+
systemctl enable hysteria-auth.service >/dev/null 2>&1
65+
systemctl start hysteria-auth.service >/dev/null 2>&1
6666
}
6767

6868
check_auth_server_service() {

0 commit comments

Comments
 (0)