From: Dwight Engen Date: Tue, 1 Oct 2013 15:25:46 +0000 (-0400) Subject: lxc-monitor default name to .* to monitor all containers X-Git-Tag: lxc-1.0.0.alpha2~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbf050e4c211030eb343008583f76605dfaaef38;p=thirdparty%2Flxc.git lxc-monitor default name to .* to monitor all containers Signed-off-by: Dwight Engen Signed-off-by: Serge Hallyn --- diff --git a/doc/lxc-monitor.sgml.in b/doc/lxc-monitor.sgml.in index a0aa7df57..abd668a45 100644 --- a/doc/lxc-monitor.sgml.in +++ b/doc/lxc-monitor.sgml.in @@ -49,7 +49,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA lxc-monitor - -n name + -n name @@ -57,10 +57,13 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Description - lxc-monitor monitors the state of the - specified containers. The name can be - a regular expression, conforming with posix2, so it is possible - to monitor all the containers, several of them or just one. + lxc-monitor monitors the state of containers. The + name argument may be used to specify + which containers to monitor. It is a regular expression, conforming + with posix2, so it is possible to monitor all the containers, + several of them or just one. If not specified, + name will default to '.*' which will + monitor all containers in lxcpath. diff --git a/src/lxc/lxc_monitor.c b/src/lxc/lxc_monitor.c index b52fa2e1a..00ab58b51 100644 --- a/src/lxc/lxc_monitor.c +++ b/src/lxc/lxc_monitor.c @@ -42,13 +42,14 @@ static const struct option my_longopts[] = { static struct lxc_arguments my_args = { .progname = "lxc-monitor", .help = "\ ---name=NAME\n\ +[--name=NAME]\n\ \n\ lxc-monitor monitors the state of the NAME container\n\ \n\ Options :\n\ -n, --name=NAME NAME for name of the container\n\ NAME may be a regular expression", + .name = ".*", .options = my_longopts, .parser = NULL, .checker = NULL,