mark2 icon indicating copy to clipboard operation
mark2 copied to clipboard

Restart if process killed

Open vemacs opened this issue 12 years ago • 6 comments

Spigot's restart-on-crash kills the process, then attempts to launch a script. I just ended up disabling it, but it could be a nice feature, if say, an OOM kills the process or Spigot detects a hang.

vemacs avatar Jun 19 '13 11:06 vemacs

I would appreciate a log of what happens, if you have one handy?

barneygale avatar Jun 22 '13 23:06 barneygale

No error at all, just server stopped.

vemacs avatar Jun 23 '13 20:06 vemacs

To come back to this, I think the solution would be a script with something like "sleep 5; mark2 start". As far as I can tell, if this never gets called, this is a problem with spigot and not mark2.

barneygale avatar Jul 03 '13 23:07 barneygale

Now, if the kernel accidentally kills the process because of an OOM, how would that be handled?

vemacs avatar Jul 05 '13 18:07 vemacs

kills which process? I think spigot fully detaches a child process (running the script) and exits, meaning there's never two mark2 instances or servers running concurrently.

barneygale avatar Jul 07 '13 15:07 barneygale

Not Spigot, the Linux kernel. OOM condition, out of swap and RAM. What happens?

vemacs avatar Jul 08 '13 00:07 vemacs