deamon
Node.js process deamon.
非Cluster模式的进程守护
cluster的fork形式仅能对单一进程使用。deamon适合其他情况,比如守护定时任务。
注意:deamon仅负责重启,不负责调度,不负责负载均衡。
Usage
var deamon = ;var timerPath = '/path/to/timer.js'; // 任务进程;
License
The MIT license
Node.js process deamon.
cluster的fork形式仅能对单一进程使用。deamon适合其他情况,比如守护定时任务。
注意:deamon仅负责重启,不负责调度,不负责负载均衡。
var deamon = ;var timerPath = '/path/to/timer.js'; // 任务进程;
The MIT license
npm i deamon
23
1.0.0
MIT