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

Serge Hallyn serge.hallyn at ubuntu.com
Fri Jan 29 06:24:47 UTC 2016


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 (mangoo at wpkg.org):
> 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 Chmielewski
> http://wpkg.org
> 
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users


More information about the lxc-users mailing list