B4J Question Killing server linux.

MichalK73

Well-Known Member
Licensed User
Longtime User
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?
 

billzhan

Active Member
Licensed User
Longtime User
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
Top