From c69115f08e844fe713b1950325118fc1c4357cf4 Mon Sep 17 00:00:00 2001 From: william Date: Fri, 29 Jan 2016 17:22:25 -0500 Subject: [PATCH] stop --- lxc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lxc.js b/lxc.js index a89af17..7d85f87 100644 --- a/lxc.js +++ b/lxc.js @@ -73,7 +73,7 @@ module.exports = function(config){ }; obj.stop = function(name, callback){ - console.log('stop'); + console.log('stop', name); sysExec('lxc-stop -n '+ name, callback); }; @@ -90,7 +90,7 @@ module.exports = function(config){ var output = ''; sysExec('lxc-info -n '+name, function(data){ - console.log(data) + console.log('info', name, data) if(data.match("doesn't exist")) return callback({state: 'NULL'}); var info = {}; data = data.replace(/\suse/ig, '').replace(/\sbytes/ig, '').split("\n").slice(0,-1);