Update usage-dashboard/cliproxy-dashboard.service
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user