Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Commit

Permalink
0.2
Browse files Browse the repository at this point in the history
- Shut down on boot loop support
- Option to force keep alive, no matter what happens
  • Loading branch information
Sven Fehler authored Jan 18, 2019
1 parent 8d0056c commit eb14c26
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion node-wrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var child, logToConsole = false, crashCounter, bootLoopTimeout = 0, initHR;
* @prop {String} [logConsoleOutput="none"] Logs all console outputs of the child process to that file, leave null or undefined for no file logging
* @prop {Boolean} [logTimestamp=true] Whether a timestamp should be added to the above logs
* @prop {Array<Number>} [restartCodes="no additional codes"] What additional exit codes should invoke a restart
* @prop {Number} [bootLoopDetection=0] Boot loop prevention mechanism: enter the estimated time in milliseconds it usually takes to INITIALIZE (until an infinite loop of some sort gets started) the child process (0 or leave empty to disable) (higher number = higher stability but also longer delay until the boot loop detection kicks in - if you're unsure or it's unstable, take the biggest number of your measurements)
* @prop {Number} [bootLoopDetection=0] Boot loop prevention mechanism: enter the estimated time in milliseconds it usually takes to INITIALIZE (until an infinite loop of some sort gets started) the child process (0 or leave empty to disable) (higher number = higher stability but also longer delay until the boot loop detection kicks in - if you're unsure or it's unstable, take the biggest number of your measurements and/or add a few seconds)
* @prop {Boolean} [alwaysKeepAlive=false] Set to true to force node-wrap to insistently keep alive / restart the child process as fast and reliably as possible (unaffected by boot loop detection though)
*/

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-wrap",
"version": "0.1.2",
"version": "0.2.0",
"description": "A lightweight, zero-dependency package that wraps your script to restart it once it crashes and to provide other useful stuff",
"main": "node-wrap.js",
"scripts": {
Expand All @@ -22,7 +22,5 @@
"bugs": {
"url": "https://github.com/Sv443/node-wrap/issues"
},
"homepage": "https://github.com/Sv443/node-wrap#readme",
"dependencies": {
}
"homepage": "https://github.com/Sv443/node-wrap#readme"
}

0 comments on commit eb14c26

Please sign in to comment.