<arg choice="opt">-r</arg>
<arg choice="opt">-s</arg>
<arg choice="opt">-a</arg>
+ <arg choice="opt">-A</arg>
<arg choice="opt">-g <replaceable>groups</replaceable></arg>
<arg choice="opt">-t <replaceable>timeout</replaceable></arg>
</cmdsynopsis>
</para>
</listitem>
</varlistentry>
+
+ <varlistentry>
+ <term>
+ <option>-A,--ignore-auto</option>
+ </term>
+ <listitem>
+ <para>
+ Ignore the lxc.start.auto flag. Combined with
+ -a, will select all containers on the system.
+ </para>
+ </listitem>
+ </varlistentry>
</variablelist>
</refsect1>
case 'r': args->reboot = 1; break;
case 's': args->shutdown = 1; break;
case 'a': args->all = 1; break;
+ case 'A': args->ignore_auto = 1; break;
case 'g': args->groups = arg; break;
case 't': args->timeout = atoi(arg); break;
}
{"reboot", no_argument, 0, 'r'},
{"shutdown", no_argument, 0, 's'},
{"all", no_argument, 0, 'a'},
+ {"ignore-auto", no_argument, 0, 'A'},
{"groups", required_argument, 0, 'g'},
{"timeout", required_argument, 0, 't'},
{"help", no_argument, 0, 'h'},
-s, --shutdown shutdown the containers instead of starting them\n\
\n\
-a, --all list all auto-started containers (ignore groups)\n\
+ -A, --ignore-auto ignore lxc.start.auto and select all matching containers\n\
-g, --groups list of groups (comma separated) to select\n\
-t, --timeout=T wait T seconds before hard-stopping\n",
.options = my_longopts,
continue;
}
- if (get_config_integer(c, "lxc.start.auto") != 1) {
+ if (!my_args.ignore_auto &&
+ get_config_integer(c, "lxc.start.auto") != 1) {
lxc_container_put(c);
continue;
}