This commit is contained in:
2016-06-24 14:12:49 -04:00
parent 78658a5c9f
commit 992a891aee

View File

@ -321,6 +321,7 @@ workers.checkBalance();
// }); // });
// }); // });
router.get('/stop/:name', function(req, res, next){ router.get('/stop/:name', function(req, res, next){
return lxc.stop(req.params.name, function(data){ return lxc.stop(req.params.name, function(data){
console.log('stop', arguments); console.log('stop', arguments);
@ -331,6 +332,10 @@ router.get('/stop/:name', function(req, res, next){
} }
}); });
}); });
router.get('destroyOld', function(req, res, next) {
workers.destroyOld();
res.send('?');
});
router.get('/liststuff', function(req, res, next){ router.get('/liststuff', function(req, res, next){
var obj = util.inspect(workers, {depth: 4}); var obj = util.inspect(workers, {depth: 4});