Claus Ibsen created CAMEL-25395:
-----------------------------------
Summary: camel-jbang - camel stop and restart wait and verify
Key: CAMEL-25395
URL: https://issues.apache.org/jira/browse/CAMEL-25395
Project: Camel
Issue Type: Sub-task
Components: camel-jbang
Reporter: Claus Ibsen
Assignee: Claus Ibsen
Fix For: 4.24.0
* {{camel stop}} waits for the process to exit (default {{--timeout=60s}}); on
timeout: {{ERROR: ... did not stop within 60s; use --kill}}, exit 4.
{{--no-wait}} for fire-and-forget; {{--kill}} unchanged.
* {{camel restart}} reuses the stop logic, refuses to relaunch while the old
pid is alive (exit 4), waits until the new integration is Started, keeps and
prints the log path (today it is deleteOnExit), early death -> exit 1 with log
tail.
* Both: graceful shutdown via the pid file first, SIGTERM/SIGKILL only on
timeout or {{--kill}}.
* Numeric pid without a Camel status file is rejected (today {{camel stop 1234
--kill}} kills any process owned by the user).
_Claude Code on behalf of davsclaus (Claus Ibsen)_
--
This message was sent by Atlassian Jira
(v8.20.10#820010)