Spawn a process in Java that survives a JVM shutdown

后端 未结 7 1811
滥情空心
滥情空心 2020-12-10 03:40

I need to spawn a process in Java (under Linux exclusively) that will continue to run after the JVM has exited. How can I do this?

Basically the Java app should sp

7条回答
  •  余生分开走
    2020-12-10 04:01

    >>don't believe the spawned process will die when the JVM exits.

    Child process is always dying on my box(SuSE) whenever I kill java. I think, the child process will die if it's dealing with I/O of the parent process(i.e., java)

提交回复
热议问题