[
https://issues.apache.org/jira/browse/CAMEL-25397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18127576#comment-18127576
]
Claus Ibsen commented on CAMEL-25397:
-------------------------------------
Decided 2026-10-15 (CAMEL-25389, https://github.com/apache/camel/pull/27909): a
missing input file exits with 3 (not found), not 1, for every extension, and
like every other command. The simple checks (a missing {{file:}} source, a
missing {{--source-dir}}) already return 3 in that PR. Here the check should
move before {{run()}} recreates the {{.camel-jbang}} work dir, so it fails fast
without side effects and can get a unit test. Timeouts (still starting when
{{--background-wait}} expires) exit with 124.
_Claude Code on behalf of davsclaus (Claus Ibsen)_
> 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 4 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 1 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)