feat: overwrite agentapi logs instead of appending them
This commit is contained in:
parent
85e7da3c41
commit
03ac608e1f
@ -180,7 +180,7 @@ locals {
|
||||
main_script = file("${path.module}/scripts/main.sh")
|
||||
shutdown_script = file("${path.module}/scripts/agentapi-shutdown.sh")
|
||||
|
||||
start_script_name = "${var.agentapi_server_type}-start_script"
|
||||
start_script_name = "${var.agentapi_server_type}-start_script"
|
||||
agentapi_main_script_name = "${var.agentapi_server_type}-main_script"
|
||||
}
|
||||
|
||||
|
||||
@ -100,6 +100,6 @@ if [ -n "${AGENTAPI_INITIAL_PROMPT}" ]; then
|
||||
fi
|
||||
|
||||
# Start agentapi server with the agent-command.sh script
|
||||
nohup agentapi "${ARGS[@]}" -- "$module_path/agent-command.sh" &>> "$module_path/agentapi-start.log" &
|
||||
nohup agentapi "${ARGS[@]}" -- "$module_path/agent-command.sh" &> "$module_path/agentapi-start.log" &
|
||||
|
||||
"$module_path/scripts/agentapi-wait-for-start.sh" "${AGENTAPI_PORT}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user