From a7b2aea9bbb15295a2ea8b7ec7a5937dc952e8ba Mon Sep 17 00:00:00 2001 From: william Date: Fri, 29 Jan 2016 17:17:07 -0500 Subject: [PATCH] stop --- lxc.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lxc.js b/lxc.js index 16e195e..8981492 100644 --- a/lxc.js +++ b/lxc.js @@ -3,7 +3,7 @@ module.exports = function(config){ var cmd = require('node-cmd'); var sysExec = function(command, callback){ - console.log('sysExec: ', command, '||| callback:', callback) + // console.log('sysExec: ', command, '||| callback:', callback) cmd.get('unset XDG_SESSION_ID XDG_RUNTIME_DIR; cgm movepid all virt $$; '+command, callback) } /* var obj = {}; @@ -90,6 +90,7 @@ module.exports = function(config){ var output = ''; sysExec('lxc-info -n '+name, function(data){ + console.log(data) if(output.match("doesn't exist")) return callback({state: 'NULL'}); var info = {}; output = output.replace(/\suse/ig, '').replace(/\sbytes/ig, '').split("\n").slice(0,-1);