How to detect if Karaf is ready to accept commands via 'client'? -
i'm trying automate setup of karaf server issuing commands through bin/client. have following issues:
- after starting bin/start, have no idea how long need wait before karaf can start accepting commands
- after each command via bin/client, subsequent bin/client commands fail message 'failed acquire session' time, looks previous command still executed , must wait unpredictable amount of time finish.
- after issuing commands, need stop karaf. long don't know if last command has finished, can't that.
is there way ask if bin/client ready accept next command, or, best, wait in script until happens?
Comments
Post a Comment