incendio Well-Known Member Licensed User Longtime User Nov 24, 2017 #1 Hello guys, I have 2 app created in B4J & need to run these app on startup. I created command line in file rc.local on ubuntu, something like this Code: Copy zbd -f abc.z java -jar app1.jar java -jar app2.jar After startup, only app1.jar runs, app2.jar was not run. If I change the order to Code: Copy zbd -f abc.z java -jar app2.jar java -jar app1.jar App2.jar run but app1.jar was not run. App zbd is always runs no matter what order it was placed. Any hints how to solve this? Thanks in advance.
Hello guys, I have 2 app created in B4J & need to run these app on startup. I created command line in file rc.local on ubuntu, something like this Code: Copy zbd -f abc.z java -jar app1.jar java -jar app2.jar After startup, only app1.jar runs, app2.jar was not run. If I change the order to Code: Copy zbd -f abc.z java -jar app2.jar java -jar app1.jar App2.jar run but app1.jar was not run. App zbd is always runs no matter what order it was placed. Any hints how to solve this? Thanks in advance.
OliverA Expert Licensed User Longtime User Nov 24, 2017 #2 If your version of Ubuntu uses systemd, then see https://www.b4x.com/android/forum/t...ice-and-automatically-starting-at-boot.85739/. Upvote 0
If your version of Ubuntu uses systemd, then see https://www.b4x.com/android/forum/t...ice-and-automatically-starting-at-boot.85739/.
incendio Well-Known Member Licensed User Longtime User Nov 24, 2017 #3 Thanks for your replied. Currently, tested on virtual box, it uses systemd, but the real Server will not install by me, so don't know with system will be used. Any other general way that not depend on system used? Upvote 0
Thanks for your replied. Currently, tested on virtual box, it uses systemd, but the real Server will not install by me, so don't know with system will be used. Any other general way that not depend on system used?
OliverA Expert Licensed User Longtime User Nov 24, 2017 #4 incendio said: Any other general way that not depend on system used? Click to expand... Probably not. You can use this link (http://www.jcgonzalez.com/linux-java-service-wrapper-example) for a start on a SysV init.d script and service installation. The example should work for Ubuntu/Debian versions that use SysV/init.d. Other systems (using SysV/init.d) may need some tweaking. Upvote 0
incendio said: Any other general way that not depend on system used? Click to expand... Probably not. You can use this link (http://www.jcgonzalez.com/linux-java-service-wrapper-example) for a start on a SysV init.d script and service installation. The example should work for Ubuntu/Debian versions that use SysV/init.d. Other systems (using SysV/init.d) may need some tweaking.
incendio Well-Known Member Licensed User Longtime User Nov 24, 2017 #5 Ok thanks, I will wait for real server installation ready an act accordingly. Upvote 0
alwaysbusy Expert Licensed User Longtime User Nov 24, 2017 #6 have you tried using & ? Code: Copy zbd -f abc.z java -jar app1.jar & java -jar app2.jar & Upvote 0
incendio Well-Known Member Licensed User Longtime User Nov 24, 2017 #7 Nice ! Woks like a charm, thanks. Upvote 0