Commit 0bd32ecc authored by project's avatar project

--no commit message

--no commit message
parent 401f59ce
......@@ -24,6 +24,7 @@
"node-persist": "^2.0.7",
"node-schedule": "^1.2.0",
"node-uuid": "^1.4.7",
"pm2": "^2.4.0",
"query-string": "^4.2.3",
"quickq": "^0.8.1",
"random-access-file": "^1.3.0",
......
var pm2 = require('pm2');
pm2.connect(function(err) {
if (err) {
console.error(err);
process.exit(2);
}
pm2.getProcessIdByName('serv-storage',function(err,data){
console.log(data);
pm2.disconnect();
})
// pm2.start({
// script : 'app.js', // Script to be run
// exec_mode : 'cluster', // Allows your app to be clustered
// instances : 4, // Optional: Scales your app by 4
// max_memory_restart : '100M' // Optional: Restarts your app if it reaches 100Mo
// }, function(err, apps) {
// pm2.disconnect(); // Disconnects from PM2
// if (err) throw err
// });
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment