App-LXC-Container
view release on metacpan or search on metacpan
lib/App/LXC/Container/Run.pm view on Meta::CPAN
'--name', $self->{name}, '--', '/lxc-run.sh')
or fatal('call_failed__1__2', 'lxc-attach', $!);
}
else
{
debug(3, 'starting LXC application container ', $self->{name});
my $rc = system(
'lxc-execute', '--rcfile', $self->{rc},
'--name', $self->{name}, '--', '/lxc-run.sh');
my $err = $!;
# remove all .Xauthority files in container (the credentials may
# change before the next run):
local $_;
foreach (glob($self->{root} . '/.xauth-*/.Xauthority'))
{
unlink $_ or error 'can_t_remove__1__2', $_, $!;
}
0 == $rc or fatal('call_failed__1__2', 'lxc-execute', $err);
}
}
( run in 0.268 second using v1.01-cache-2.11-cpan-4d50c553e7e )