diff --git a/api/systemd/uvicorn.service b/api/systemd/uvicorn.service index 7618cf67..6981243f 100644 --- a/api/systemd/uvicorn.service +++ b/api/systemd/uvicorn.service @@ -26,7 +26,8 @@ ExecStart=/usr/bin/unbuffer ROOT/var/swarms/agent_workspace/.venv/bin/uvicorn \ --workers=4 \ --port=5474 \ main:create_app - +StandardOutput=file:/var/log/swarms_systemd.log +StandardError=file:/var/log/swarms_systemd.log ExecReload=/bin/kill -HUP ${MAINPID} RestartSec=10 Restart=always