From 0ce318edc960cd9fe3c677800f0536bfaaddb474 Mon Sep 17 00:00:00 2001 From: Tony Tran Date: Fri, 3 Jul 2026 22:01:17 +0700 Subject: [PATCH] Update usage-dashboard/cliproxy-dashboard.service --- usage-dashboard/cliproxy-dashboard.service | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/usage-dashboard/cliproxy-dashboard.service b/usage-dashboard/cliproxy-dashboard.service index e75d843..86009eb 100644 --- a/usage-dashboard/cliproxy-dashboard.service +++ b/usage-dashboard/cliproxy-dashboard.service @@ -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 \ No newline at end of file +# Changed to default.target for user services +WantedBy=default.target \ No newline at end of file