This commit is contained in:
wmantly committed 2016-01-29 17:27:56 -05:00
1 parent d7bcffa38e
commit ed7d0972ac
1 file changed
+3 -2
+3 -2
View File
@@ -51,10 +51,11 @@ module.exports = function(config){
};
obj.destroy = function(name, callback){
sysExec('lxc-destroy -n '+ name, callback);
sysExec('lxc-destroy -n '+ name, function(data){
callback(data.match(/Destroyed container u1-sdfwefwe\n/))
});
};
obj.start = function(name, callback){
var cmd = 'lxc-start --name '+name+' --daemon';
console.log('start cmd\n', cmd, '\n');