It is running as expected If I run the script manually. As long as the servers restarts the scripts keep on running. I want to run the script using b4j.
Expectation is the script will run as a service in linux. Is that possible using b4j.
I think what @Erel is asking you, is to try running your shell script using the B4J jShell Library as follows:
B4X:
Private shl As Shell
shl.Initialize("shl","nohup",Array As String("./connect-standalone.sh", "/opt/oracle/kafka/config/connect-standalone.properties", "&"))
shl.Run(-1)