Re: [lxc-users] lxc exec - is there a way to run command in the background?

2016-01-29 Thread Nicola Volpini
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

Re: [lxc-users] lxc exec - is there a way to run command in the background?

2016-01-29 Thread Serge Hallyn
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

[lxc-users] lxc exec - is there a way to run command in the background?

2016-01-28 Thread Tomasz Chmielewski
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

Re: [lxc-users] lxc exec - is there a way to run command in the background?

2016-01-28 Thread Serge Hallyn
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