I guess I need a better understanding.
Upon Pi boot up, I have the B4j-Bridge start and run as a service.
When I connect to the Pi with B4J Anywhere Software compile with release program runs perfectly (actually has for years)
Once log looks good I exit the Anywhere Software, Take down the remote VPN and the software runs perfectly.
These remote systems use there own WebSocket, PiFace, OneWire and I2C .. that works well.
What I would like to solve is the problem of if the power goes off, the Pi will reboot and yes the bridge does restart, however, the last compiled program that was downloaded via the bridge does not restart.
I would like to know it there is a way to have the compiled program restart on reboot. Still leaving me the option to reconnect to the pi remotely with the bridge to look at the logging, or load a program change.
I have noticed this afternoon testing the idea of starting the program outside the bridge ( I have tried under rc.local )
the program starts and runs, however, the websocket does not work, I2C does not work, basic timers and counters do work. So I think that may have to do with how I'm starting the Job? I tried wrapping it and I get the same results.
Any thoughts would be helpful.
Kris