MichalK73 Well-Known Member Licensed User Longtime User May 12, 2016 #1 I run the server console B4X: java -jar my_prog.jar the program works, but when you stop working for reasons of errors kill process java B4X: killall -9 java and there is no process of my server, but the server can re-uruchmić as TCP port is already in use. How to deal with it?
I run the server console B4X: java -jar my_prog.jar the program works, but when you stop working for reasons of errors kill process java B4X: killall -9 java and there is no process of my server, but the server can re-uruchmić as TCP port is already in use. How to deal with it?
B billzhan Active Member Licensed User Longtime User May 12, 2016 #2 B4X: 'path /root/yourjar/Objects/result.jar cd /root/yourjar/Objects/ nohup java -jar result.jar 2>&1 & echo $! > /root/b4jserver.pid ' pid echos to /root/b4jserver.pid ' kill -9 pid Upvote 0
B4X: 'path /root/yourjar/Objects/result.jar cd /root/yourjar/Objects/ nohup java -jar result.jar 2>&1 & echo $! > /root/b4jserver.pid ' pid echos to /root/b4jserver.pid ' kill -9 pid