From 992a891aee710995d6d112b68ed3527afed055b4 Mon Sep 17 00:00:00 2001 From: william mantly Date: Fri, 24 Jun 2016 14:12:49 -0400 Subject: [PATCH] stuff --- routes/api.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/routes/api.js b/routes/api.js index 7bf9d3e..9c624bb 100644 --- a/routes/api.js +++ b/routes/api.js @@ -321,6 +321,7 @@ workers.checkBalance(); // }); // }); + router.get('/stop/:name', function(req, res, next){ return lxc.stop(req.params.name, function(data){ 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){ var obj = util.inspect(workers, {depth: 4});