[ 
https://issues.apache.org/jira/browse/CAMEL-25397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18127668#comment-18127668
 ] 

Claus Ibsen commented on CAMEL-25397:
-------------------------------------

Pull request: https://github.com/apache/camel/pull/27930 — camel run 
--background waits for the integration to start (--background-wait, a duration, 
60s by default), exits 124 when it is still starting, keeps its output in 
~/.camel/<pid>-run.log; a missing file exits 3 and an integration without 
routes exits 1 before it runs idle.

_Claude Code on behalf of davsclaus_

> camel-jbang - camel run: background startup reporting and early input errors
> ----------------------------------------------------------------------------
>
>                 Key: CAMEL-25397
>                 URL: https://issues.apache.org/jira/browse/CAMEL-25397
>             Project: Camel
>          Issue Type: Sub-task
>          Components: camel-jbang
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 4.24.0
>
>
> * {{--background-wait=<duration>}} (default 60s; {{true}}/{{false}} still 
> accepted). Still starting at expiry -> exit 124 with the log path, 
> integration left running (today: hardcoded 20s, exit 0).
> * Keep the log as {{~/.camel/<pid>-run.log}}, always print its path, remove 
> it from {{stop}}/{{dirty}}; no-wait mode logs to the file instead of an 
> unread pipe.
> * Missing file -> clean {{ERROR: File does not exist}} exit 3 for every 
> extension (today {{.yaml}}/{{.xml}} give a stack trace).
> * Zero routes loaded -> exit 1 "No routes found in: ..." except with 
> {{--source-dir}} (files may be added later); internal spawns pass {{--empty}}.
> * {{dev}} with explicit 
> {{--max-seconds}}/{{--max-messages}}/{{--max-idle-seconds}} honours the limit 
> and exits.
> _Claude Code on behalf of davsclaus (Claus Ibsen)_



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to