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

Adding support for command directives, for example: '--nouse-idle-notification' and '--expose-gc' #361

Closed
wants to merge 2 commits into from

Conversation

yairlev
Copy link

@yairlev yairlev commented Dec 2, 2012

I added support for 2 important nodejs directives. The directives can be passed as follows:

forever --noUseIdleNotification --exposeGC

if the directives are explicitly specified, they are passed to the argument-list when spawning the node process. Currently there's no other way to pass these directives since they need to be placed before the js file name when spawning nodejs.

here's a reference to a discussion about this issue in stackoverflow

The change is also reflected in the forever-monitor's monitor.js file.

@mmalecki
Copy link
Contributor

mmalecki commented Dec 2, 2012

We need a more generic solution, allowing us to pass any arguments to node. I'll update when I think about how to resolve this.

-c "node --nouse-idle-notification --expose-gc"
@yairlev
Copy link
Author

yairlev commented Dec 2, 2012

Have a look at the changes I've made. It now supports any arguments that are passed together with the command. For example: forever -c "node --nouse-idle-notification --expose-gc"

@yairlev
Copy link
Author

yairlev commented Dec 3, 2012

I'd be happy to hear your thoughts. As you probably know the "--nouse-idle-notification" has some significant implications on node's performance. I cannot use forever in production unless I can pass this directive.

@pjnovas
Copy link

pjnovas commented Jan 8, 2013

What happened with this?, I'm needing to send that parameters.
Thanks!

@yairlev
Copy link
Author

yairlev commented Jan 8, 2013

No reply here. Use my branch. It works for me.

@pjnovas
Copy link

pjnovas commented Jan 8, 2013

Will do, thanks!

@julianduque
Copy link
Contributor

This is fixed with foreversd/forever-monitor#8

@julianduque
Copy link
Contributor

This is fixed in forever-monitor, until we publish a new version to npm this will maintain open

@ronadams
Copy link

+1 we definitely need support for this. is there an eta on the next npm version?

@indexzero indexzero closed this in 9cbe4cb Apr 21, 2013
@indexzero
Copy link
Member

Fixed. The --command option will now get passed to the latest version of forever-monitor so it will parse it correctly.

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.

7 participants