This commit is contained in:
William Mantly 2016-04-30 23:08:13 -04:00
parent c742c8fb7a
commit 70bd796bc6
2 changed files with 3 additions and 1 deletions

3
lxc.js
View File

@ -2,7 +2,8 @@
var exec = require('child_process').exec;
function sysExec(command, callback){
command = 'unset XDG_SESSION_ID XDG_RUNTIME_DIR; cgm movepid all virt $$; ' + command;
command = 'ssh virt@104.236.77.157 ' + command;
// command = 'unset XDG_SESSION_ID XDG_RUNTIME_DIR; cgm movepid all virt $$; ' + command;
return exec(command, (function(callback){
return function(err,data,stderr){

View File

@ -47,6 +47,7 @@ var lxcTimeout = function(ip, time){
}
timeoutEvents[name] = setTimeout(function(){
lxc.stop(name);
startAll();
}, time);
}