Hello. I use lxc-start to run commands inside the container and look at the return code of the command. I always get a value of 0 or 255, even if the return code other. Example:
user@ubuntu:~$ sudo lxc-start -n j1 -- bash -c 'exit 0' user@ubuntu:~$ echo $? 0 user@ubuntu:~$ sudo lxc-start -n j1 -- bash -c 'exit 3' user@ubuntu:~$ echo $? 255 user@ubuntu:~$ There is an opportunity get the correct exit code when using lxc-start? -- Andrey Khozov
_______________________________________________ lxc-users mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-users
