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

Make forever safer for servers #344

Closed
wants to merge 2 commits into from
Closed

Make forever safer for servers #344

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Oct 7, 2012

I have run into a number of gotchas in the past arising from:

  • Scripts with a typo that fail on start, and becoming hard to stop
  • Scripts named like command names.

I resolved this by forcing the command parameter, and adding defaults to both minUptime and max.

Kinda defeats some of the simple use cases, but making the program safer by default could be a good idea.

@Redsandro
Copy link

How does this work? I noticed an uncatched error in a script that wasn't noticed before caught node in a crashloop, making node+mongodb use 100% cpu because forever would restart the script the next clockcycle it was crashed.

There should be a grace-period for restarting or something.

@indexzero indexzero closed this in 055c483 Apr 21, 2013
@indexzero
Copy link
Member

I like your idea of warning people, but we can't change the CLI behavior this dramatically.

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

Successfully merging this pull request may close these issues.

None yet

3 participants