Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does the "forever" daemon know if I updated my Node.js script?

Is it safe for me to change my Node.js script if the forever daemon is actively running in the background?

share|improve this question
up vote 1 down vote accepted

Not a definite answer (I have no clue) but merely a hint, have you checked the watch-settings?

From the README on github:

// Options for restarting on watched files.
'watch': false              // Value indicating if we should watch files.
'watchIgnoreDotFiles': null // Dot files we should read to ignore ('.foreverignore', etc).
'watchIgnorePatterns': null // Ignore patterns to use when watching files.
'watchDirectory': null      // Top-level directory to watch from.

Edit: So, guessing from these options, it probably does "cache" the script, in the sense that it reads its source once - unless you tell it to watch the source.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.