Update usage-dashboard/cliproxy-dashboard.service

This commit is contained in:
2026-07-03 22:01:17 +07:00
parent c570215af3
commit 0ce318edc9
+6 -1
View File
@@ -1,6 +1,10 @@
[Unit]
Description=CLIProxyAPI Usage Dashboard
# Added cliproxyapi.service to After= to ensure it starts AFTER the API
After=network.target cliproxyapi.service
# Requires= means if the API stops, this dashboard will also stop.
# If you want the dashboard to stay running even if the API crashes temporarily,
# change Requires= to Wants=
Requires=cliproxyapi.service
[Service]
@@ -11,4 +15,5 @@ Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
# Changed to default.target for user services
WantedBy=default.target