diff --git a/doc/lxc-execute.sgml.in b/doc/lxc-execute.sgml.in index 4ec7c1b94..20814348d 100644 --- a/doc/lxc-execute.sgml.in +++ b/doc/lxc-execute.sgml.in @@ -50,6 +50,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA lxc-execute -n name + -d -f config_file -s KEY=VAL -- command @@ -124,6 +125,20 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + + + + + + + + Run the container as a daemon. As the container has no + more tty, if an error occurs nothing will be displayed, + the log file can be used to check the error. + + + + diff --git a/src/lxc/tools/lxc_execute.c b/src/lxc/tools/lxc_execute.c index 5291dd7a3..5c03b498b 100644 --- a/src/lxc/tools/lxc_execute.c +++ b/src/lxc/tools/lxc_execute.c @@ -104,6 +104,7 @@ and execs COMMAND into this container.\n\ \n\ Options :\n\ -n, --name=NAME NAME of the container\n\ + -d, --daemon Daemonize the container\n\ -f, --rcfile=FILE Load configuration file FILE\n\ -s, --define KEY=VAL Assign VAL to configuration variable KEY\n\ -u, --uid=UID Execute COMMAND with UID inside the container\n\