davsclaus opened a new pull request, #23596:
URL: https://github.com/apache/camel/pull/23596

   ## Summary
   
   - Add `camel restart <name|pid>` CLI command that stops a running Camel 
integration and re-launches it with the same command line and working directory
   - Captures the full Java command line via `ProcessHandle.info()` before 
stopping
   - Graceful shutdown with 10s timeout, then force kill if needed
   - Re-launches using `ProcessBuilder` with the original working directory 
from the status file
   
   ## Test plan
   
   - [ ] Start an integration: `camel run timer-log.yaml`
   - [ ] Run `camel restart timer-log` — should stop and re-launch the 
integration
   - [ ] Verify integration runs normally after restart (exchanges counting 
from 0)
   - [ ] Verify `camel restart 12345` works with PID
   - [ ] Verify error message when no matching integration found
   - [ ] Verify error message when multiple integrations match
   
   _Claude Code on behalf of Claus Ibsen_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to