]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-start: Daemonize by default
authorStéphane Graber <stgraber@ubuntu.com>
Mon, 21 Jul 2014 09:52:19 +0000 (11:52 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 31 Jul 2014 17:46:51 +0000 (13:46 -0400)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
doc/lxc-start.sgml.in
src/lxc/lxc_start.c

index 1bbe30234391be2cde4e68643c84aab2070e549a..950cc243b81b089855a160a486ead8b1d1386f95 100644 (file)
@@ -101,7 +101,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
          <para>
            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.
+           the log file can be used to check the error. (This is the default mode)
          </para>
        </listitem>
       </varlistentry>
@@ -114,7 +114,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
          <para>
            Run the container in the foreground. In this mode, the container
            console will be attached to the current tty and signals will be routed
-           directly to the container. (This is the default mode)
+           directly to the container.
          </para>
        </listitem>
       </varlistentry>
index 0e4874c456e0dd9d8660f80c3c91f2fef3f9a4ea..86235789ff1a95f1e4bc1fb20aa8be8d5b82bce6 100644 (file)
@@ -183,8 +183,8 @@ lxc-start start COMMAND in specified container NAME\n\
 \n\
 Options :\n\
   -n, --name=NAME        NAME for name of the container\n\
-  -d, --daemon           Daemonize the container\n\
-  -F, --foreground       Start with the current tty attached to /dev/console (default)\n\
+  -d, --daemon           Daemonize the container (default)\n\
+  -F, --foreground       Start with the current tty attached to /dev/console\n\
   -p, --pidfile=FILE     Create a file with the process id\n\
   -f, --rcfile=FILE      Load configuration file FILE\n\
   -c, --console=FILE     Use specified FILE for the container console\n\
@@ -198,7 +198,7 @@ Options :\n\
        .options   = my_longopts,
        .parser    = my_parser,
        .checker   = NULL,
-       .daemonize = 0,
+       .daemonize = 1,
        .pidfile = NULL,
 };