While I found this question being answered here on SW several times, I didn't find a concluding answer what is the best approach.
I'm not looking to use any external wrapper, as I found them launching the java process under a nice level lower then themselves which potentially lowers the performance, so it seems only the shell methods are left.
I so far found 3 different shell methods:
- RedHat daemon init.d function
- nohup on start / disown after start
What you people are using, and can recommend as the most reliable method?
QT qmake lowercases my custom widget names
1:Deleting a possibly locked file in c
2:segfault during __cxa_allocate_exception in SWIG wrapped library
nohup java -jar MyJar &. There's nothing particularly unreliable around it -
nohupkeeps it from receiving a
SIGHUPwhen you disconnect, and
&runs a process in the background.. Optionally, you must redirect the output to any thing another than
screen(Launch screen, then launch the java program, then close[not quit] the screen).