Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite loop when given bad module name #61

Closed
ealter opened this issue Jun 5, 2012 · 1 comment
Closed

Infinite loop when given bad module name #61

ealter opened this issue Jun 5, 2012 · 1 comment

Comments

@ealter
Copy link

ealter commented Jun 5, 2012

At startup, if you pass a filename that does not exist, supervisor will infinitely loop. Node.js throws an exception since it can't find the module and then Supervisor restarts the process because it crashed. This results in an infinite loop

@iangreenleaf
Copy link
Collaborator

This is true. I'm not sure if there's a good solution, though. Supervisor, by design, isn't really going to distinguish between node exiting because the file is missing or for some other reason.

A number of people seem to prefer --no-restart-on exit, which will prevent the endless looping. I may make that the default in 0.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants