On 01/29/2016 07:24 AM, Serge Hallyn wrote:
> Hm, well at least
>
> nohup lxc exec container -- sleep 2h &
>
> works for me. I would have expected --mode=non-interactive to
> work, but it doesn't.
I was wondering the very same thing yesterday evening.
I noticed the non-interactive mode actually
FWIW, the REST api does support it, so you could add a mode=background
option to lxc exec to do this.
Quoting Nicola Volpini (nicola.volp...@kambi.com):
> On 01/29/2016 07:24 AM, Serge Hallyn wrote:
> > Hm, well at least
> >
> > nohup lxc exec container -- sleep 2h &
> >
> > works for me. I
Is there a way to run the command in the background, when running "lxc
exec"?
It doesn't seem to work for me.
# lxc exec container -- sleep 2h &
[2] 13566
#
[2]+ Stopped lxc exec container -- sleep 2h
This also doesn't work:
# lxc exec container -- "sleep 2h &"
#
Tomasz
Hm, well at least
nohup lxc exec container -- sleep 2h &
works for me. I would have expected --mode=non-interactive to
work, but it doesn't.
Quoting Tomasz Chmielewski (man...@wpkg.org):
> Is there a way to run the command in the background, when running
> "lxc exec"?
>
> It doesn't seem to