tableflip / guvnor

A node process manager that isn't spanners all the way down
MIT License
430 stars 37 forks source link

Guvnor doesn't restart automatically #78

Open Removed-5an opened 8 years ago

Removed-5an commented 8 years ago

My application just quit without an exception (clean shut down). Guvnor did not restart the process automatically. There should be a flag / setting to make sure the process automatically restarts.

achingbrain commented 8 years ago

Do you mean to say your process did a process.exit(0) or similar?

Removed-5an commented 8 years ago

Exactly

maZahaca commented 8 years ago

Do you have any update here? Does auto-restart feature work?

achingbrain commented 8 years ago

The auto-restart feature works but currently it'll only restart a process that exits with a non-zero exit code.

This is by design - the thought process being that if your process exits cleanly then it's finished the work it set out to do so probably shouldn't be restarted.

I'm not against changing it to restart any program that exits regardless of exit code but I'm not 100% convinced that's the right thing to do.