var path = require('path');
var pm2 = require('pm2');
var Kill = function(){}
Kill.prototype.execute = function(callback){
pm2.connect(function() {
pm2.killDaemon(function(err, apps) {
callback(err);
pm2.disconnect();
});
});
}
module.exports = new Kill();