Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
fbf050e4
Commit
fbf050e4
authored
Oct 01, 2013
by
Dwight Engen
Committed by
Serge Hallyn
Oct 01, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lxc-monitor default name to .* to monitor all containers
Signed-off-by:
Dwight Engen
<
dwight.engen@oracle.com
>
Signed-off-by:
Serge Hallyn
<
serge.hallyn@ubuntu.com
>
parent
291c42da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
lxc-monitor.sgml.in
doc/lxc-monitor.sgml.in
+8
-5
lxc_monitor.c
src/lxc/lxc_monitor.c
+2
-1
No files found.
doc/lxc-monitor.sgml.in
View file @
fbf050e4
...
...
@@ -49,7 +49,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
<refsynopsisdiv>
<cmdsynopsis>
<command>lxc-monitor</command>
<arg choice="
req
">-n <replaceable>name</replaceable></arg>
<arg choice="
opt
">-n <replaceable>name</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>
...
...
@@ -57,10 +57,13 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
<title>Description</title>
<para>
<command>lxc-monitor</command> monitors the state of the
specified containers. The <replaceable>name</replaceable> can be
a regular expression, conforming with posix2, so it is possible
to monitor all the containers, several of them or just one.
<command>lxc-monitor</command> monitors the state of containers. The
<replaceable>name</replaceable> 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,
<replaceable>name</replaceable> will default to '.*' which will
monitor all containers in <command>lxcpath</command>.
</para>
<para>
...
...
src/lxc/lxc_monitor.c
View file @
fbf050e4
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment