Feature request description
Add a health check when running ramalama serve.
Suggest potential solution
@rhatdan you might have a better idea as to how this could best be implemented but one route might be to add the healthcheck on serve here. There is already an implementation for is_healthy and wait_for_healthy which can be reused.
One optional extension might include switching from execvp in exec_cmd to popen to hold onto the parent process until we've confirmed the server came up alive.
Have you considered any alternatives?
No response
Additional context
This is a follow-on from the discussion in #1524.
Feature request description
Add a health check when running
ramalama serve.Suggest potential solution
@rhatdan you might have a better idea as to how this could best be implemented but one route might be to add the healthcheck on serve here. There is already an implementation for is_healthy and wait_for_healthy which can be reused.
One optional extension might include switching from execvp in exec_cmd to
popento hold onto the parent process until we've confirmed the server came up alive.Have you considered any alternatives?
No response
Additional context
This is a follow-on from the discussion in #1524.