From a74d1b87caee7e2c99f7c0e3907a9b5a096443bb Mon Sep 17 00:00:00 2001 From: mike dupont Date: Sat, 21 Dec 2024 18:01:58 -0500 Subject: [PATCH] start of cloudwatch logs --- api/systemd/uvicorn.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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