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