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

Feature request: Allow specifying a script to run when client exits via CLI #171

Closed
diegovar opened this issue Nov 23, 2011 · 7 comments
Closed

Comments

@diegovar
Copy link

I'd like to be able to do something like the following:

forever start -exit emailCrash.js app.js

Where the script emailCrash.js is called when forever detects that app.js is dead for good (that is, it's been revived the maximum number of times or is spinning).

@jfhbrook
Copy link
Contributor

This is a neat idea! Thanks for the suggestion.

@pksunkara
Copy link

We can also have -stop emailStopped.js so that it can email when the script has stopped.

@AvianFlu
Copy link
Contributor

We would definitely accept a pull request for this - it's a great idea, but it will be a while before any of our team members have the time to devote to it.

@indexzero
Copy link
Member

There is already an internal API for this. It seems that this would lend itself even better towards the .forever file that @mmalecki and I were discussing yesterday.

From what I can tell of the bugs I've fixed tonight they come in mostly one flavor: options parsing hell Basically I'm pretty sure that forever has evolved to a point where people are probably passing 10+ options to the CLI everytime they run something.

.forever. files would be similar to #124, but no Javascript would be allowed, only configuration (like strings pointing to files)

This was referenced Apr 21, 2013
@cyrilchapon
Copy link

Any update / workaround on this ?

@indexzero
Copy link
Member

Duplicate of #437.

@fidergo-stephane-gourichon

This does not look like a duplicate of #437 (mixed start/restart command), rather a duplicate of #301 .

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

No branches or pull requests

7 participants