mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
19 lines
322 B
JavaScript
19 lines
322 B
JavaScript
var paths = require('module').globalPaths;
|
|
|
|
if (Array.isArray(paths)) {
|
|
var found = false;
|
|
paths.forEach(function(elem) {
|
|
if (elem === process.env.NODE_PATH) {
|
|
found = true;
|
|
}
|
|
});
|
|
|
|
if (!found)
|
|
process.exit(1);
|
|
else
|
|
setInterval(function keepAlive() {}, 10000);
|
|
}
|
|
else {
|
|
process.exit(1);
|
|
}
|