Commit fbf050e4 by Dwight Engen Committed by Serge Hallyn

lxc-monitor default name to .* to monitor all containers

parent 291c42da
...@@ -49,7 +49,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ...@@ -49,7 +49,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
<refsynopsisdiv> <refsynopsisdiv>
<cmdsynopsis> <cmdsynopsis>
<command>lxc-monitor</command> <command>lxc-monitor</command>
<arg choice="req">-n <replaceable>name</replaceable></arg> <arg choice="opt">-n <replaceable>name</replaceable></arg>
</cmdsynopsis> </cmdsynopsis>
</refsynopsisdiv> </refsynopsisdiv>
...@@ -57,10 +57,13 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ...@@ -57,10 +57,13 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
<title>Description</title> <title>Description</title>
<para> <para>
<command>lxc-monitor</command> monitors the state of the <command>lxc-monitor</command> monitors the state of containers. The
specified containers. The <replaceable>name</replaceable> can be <replaceable>name</replaceable> argument may be used to specify
a regular expression, conforming with posix2, so it is possible which containers to monitor. It is a regular expression, conforming
to monitor all the containers, several of them or just one. with posix2, so it is possible to monitor all the containers,
several of them or just one. If not specified,
<replaceable>name</replaceable> will default to '.*' which will
monitor all containers in <command>lxcpath</command>.
</para> </para>
<para> <para>
......
...@@ -42,13 +42,14 @@ static const struct option my_longopts[] = { ...@@ -42,13 +42,14 @@ static const struct option my_longopts[] = {
static struct lxc_arguments my_args = { static struct lxc_arguments my_args = {
.progname = "lxc-monitor", .progname = "lxc-monitor",
.help = "\ .help = "\
--name=NAME\n\ [--name=NAME]\n\
\n\ \n\
lxc-monitor monitors the state of the NAME container\n\ lxc-monitor monitors the state of the NAME container\n\
\n\ \n\
Options :\n\ Options :\n\
-n, --name=NAME NAME for name of the container\n\ -n, --name=NAME NAME for name of the container\n\
NAME may be a regular expression", NAME may be a regular expression",
.name = ".*",
.options = my_longopts, .options = my_longopts,
.parser = NULL, .parser = NULL,
.checker = NULL, .checker = NULL,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment