Correct, command and port are populated at first start. You can check the pid using bin/status as well.
Regards JB On 23/09/2019 18:27, Alex Soto wrote: > Maybe this only happens if “start” has never been called. Can you confirm? > > I saw this while automating deployment. First step is to check if > Karaf is running, but perhaps prior deployment failed before calling > “start”. > Basically I need a reliable way of testing whether Karaf is running; > apparently, testing for status output to be "Running …” is not enough. > > > Best regards, > Alex soto > > > > >> On Sep 21, 2019, at 1:18 AM, Jean-Baptiste Onofré <[email protected] >> <mailto:[email protected]>> wrote: >> >> Hi, >> >> I don't have this behavior on my machine: >> >> after starting karaf with bin/karaf, >> I do bin/status and I have: >> >> Running ... >> >> Can you check in etc/config.properties that the karaf.shutdown.port.file >> property well located ? >> >> Do you have special user permission in term of filesystem on data folder ? >> >> Regards >> JB >> >> On 20/09/2019 21:48, Alex Soto wrote: >>> When calling /status /command in Karaf 4.2.6 on a fresh install I >>> get error: >>> >>> data/port shutdown port file doesn't exist. The container is not running. >>> >>> What causes this? >>> >>> Best regards, >>> Alex soto >>> >>> >>> >>> >> >> -- >> Jean-Baptiste Onofré >> [email protected] <mailto:[email protected]> >> http://blog.nanthrax.net >> Talend - http://www.talend.com > -- Jean-Baptiste Onofré [email protected] http://blog.nanthrax.net Talend - http://www.talend.com
