Trying to use LXC EXEC to start up a script (simple ncat webserver) that I want to run in the background. The script just listens on a certain port and pipes some text to the user connecting to the listening server.
what happens is that when I type the lxc exec – bash -c /root/script.sh & the prompt will not come back. I have tried lxc exec – bash -c ‘/root/script.sh &’ and a number of other variants. Nothing seems to work.
If I get onto the container I can run that script just fine.