Thanks for the reply. I have tried many things and nohup was one of them. Here is me running the command you state.
root@ubuntu-LXD:~# time lxc exec centos7 -- bash -c "/root/test.sh"
the prompt did not come back....killing the process....
root@ubuntu-LXD:~# lxc --version
When I add the & it comes back but the script is not running in the back ground.
Tried it on a 2.16 system too
ubuntu@ip-10-99-1-37:~$ time sudo lxc exec test -- bash -c "/root/test.sh"
again this is not working ....
ubuntu@ip-10-99-1-37:~$ sudo lxc --version
Here is the script
A sample Bash script, by jeff
do echo -e "HTTP/1.1 200 OK\n\n $(date)" | nc -l -p 1500 >> /dev/null 2>&1
test $? -gt 128 && break
Not sure why you work and I don’t. This is a local 16.04 and a AWS instance of 16.04.