[
https://issues.apache.org/jira/browse/CAMEL-19074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17690736#comment-17690736
]
Claus Ibsen commented on CAMEL-19074:
-------------------------------------
Works for me
{code}
~/workspace/deleteme/chuck ❯ camel -V
✘ INT
3.20.2
~/workspace/deleteme/chuck ❯ camel run chuck.yaml --background
Running Camel integration: chuck in background with PID: 55412
~/workspace/deleteme/chuck ❯ camel ps
~/workspace/deleteme/chuck ❯ camel ps
PID NAME READY STATUS AGE
55412 foo6 1/1 Running 7s
~/workspace/deleteme/chuck ❯ camel log
foo6 | 2023-02-18 12:00:21.211 INFO 55412 --- [ main]
org.apache.camel.main.MainSupport : Apache Camel (JBang) 3.20.2 is starting
foo6 | 2023-02-18 12:00:21.327 INFO 55412 --- [ main]
org.apache.camel.main.MainSupport : Using Java 17.0.5 with PID 55412. Started
by davsclaus in /Users/davsclaus/workspace/deleteme/chuck
foo6 | 2023-02-18 12:00:21.333 INFO 55412 --- [ main]
mel.cli.connector.LocalCliConnector : Camel CLI enabled (local)
foo6 | 2023-02-18 12:00:22.263 INFO 55412 --- [ main]
g.apache.camel.main.BaseMainSupport : Auto-configuration summary
foo6 | 2023-02-18 12:00:22.263 INFO 55412 --- [ main]
g.apache.camel.main.BaseMainSupport : [application.properties]
camel.context.name=foo6
foo6 | 2023-02-18 12:00:22.263 INFO 55412 --- [ main]
g.apache.camel.main.BaseMainSupport : [application.properties]
camel.component.kamelet.timeout=3333
foo6 | 2023-02-18 12:00:22.263 INFO 55412 --- [ main]
g.apache.camel.main.BaseMainSupport : [application.properties]
camel.component.kamelet.block=true
foo6 | 2023-02-18 12:00:22.263 INFO 55412 --- [ main]
g.apache.camel.main.BaseMainSupport : [application.properties]
camel.component.log.sourceLocationLoggerName=true
foo6 | 2023-02-18 12:00:23.751 INFO 55412 --- [ main]
el.impl.engine.AbstractCamelContext : Apache Camel 3.20.2 (foo6) is starting
foo6 | 2023-02-18 12:00:23.823 INFO 55412 --- [ main]
g.apache.camel.main.BaseMainSupport : Property-placeholders summary
foo6 | 2023-02-18 12:00:23.823 INFO 55412 --- [ main]
g.apache.camel.main.BaseMainSupport : [k-norris-source.kamelet.yaml]
period=6666
foo6 | 2023-02-18 12:00:23.834 INFO 55412 --- [ main]
el.impl.engine.AbstractCamelContext : Routes startup (started:3)
foo6 | 2023-02-18 12:00:23.834 INFO 55412 --- [ main]
el.impl.engine.AbstractCamelContext : Started chuck
(kamelet://chuck-norris-source)
foo6 | 2023-02-18 12:00:23.834 INFO 55412 --- [ main]
el.impl.engine.AbstractCamelContext : Started chuck-norris-source-1
(timer://chuck)
foo6 | 2023-02-18 12:00:23.834 INFO 55412 --- [ main]
el.impl.engine.AbstractCamelContext : Started log-sink-2 (kamelet://source)
foo6 | 2023-02-18 12:00:23.835 INFO 55412 --- [ main]
el.impl.engine.AbstractCamelContext : Apache Camel 3.20.2 (foo6) started in
1s604ms (build:60ms init:1s461ms start:83ms JVM-uptime:3s)
foo6 | 2023-02-18 12:00:25.198 INFO 55412 --- [- timer://chuck]
log-sink.kamelet.yaml:134 : Exchange[ExchangePattern: InOnly,
BodyType: String, Body: Chuck Norris can sneeze with his eyes open and lick his
elbow. At the same time]
foo6 | 2023-02-18 12:00:31.577 INFO 55412 --- [- timer://chuck]
log-sink.kamelet.yaml:134 : Exchange[ExchangePattern: InOnly,
BodyType: String, Body: The Green Bay Packers challenged Chuck Norris to a
football game. Final score: Norris 274, Packers (-96).]
^C%
{code}
> camel-jbang - background not working as expected
> ------------------------------------------------
>
> Key: CAMEL-19074
> URL: https://issues.apache.org/jira/browse/CAMEL-19074
> Project: Camel
> Issue Type: Bug
> Components: camel-jbang
> Affects Versions: 3.20.2
> Reporter: Federico Mariani
> Priority: Major
>
> Tested with version 3.20.1 and 3.20.2
> When executing
> {code:java}
> camel run app/cheese.yaml --background
> No Camel integration files to run
> {code}
> The integration file cannot be found, same command without --background works
> as expected
> When executing
> {code:java}
> camel run-background app/cheese.yaml
> Unmatched arguments from index 0: 'run-background', 'app/cheese.yaml'
> Did you mean: run or bind or dependency?
> {code}
> run-background does not exist at all. Am I missing something? Moreover I
> think that documentation and --help needs to be updated with _run-background_
--
This message was sent by Atlassian Jira
(v8.20.10#820010)