recommencement
v0.0.1
Published
Initiate a restart of a node script from the script itselfs
Downloads
1
Readme
recommencement
Description
Initiate a restart of a node script from the script itself.
How to install
npm install --save recommencement
How to use
At first you have to require this module the well known way:
var recommencement = require("recommencement");
After this step you are able to restart your node script by calling:
recommencement.restart();
In addition you are able to update your npm libraries and restart after an successful update this way:
recommencement.update();
Note
You are not able to kill your restarted process with Ctrl-C after the parent process is terminated, but you can do it with kill {pid of new process}
. The new PID will be logged on console!
Have fun...