Difference between revisions of "Man/vzeventd.8"

From OpenVZ Virtuozzo Containers Wiki
< Man
Jump to: navigation, search
(Automated import of articles *** existing text overwritten ***)
(Automated import of articles *** existing text overwritten ***)
 
(2 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
== SYNOPSIS ==
 
== SYNOPSIS ==
  
<p style="margin-left:11%; margin-top: 1em">vzeventd
+
<table width="100%" border="0" rules="none" frame="void"
[<b>-v</b>] [<b>-d</b>] <br>
+
      cellspacing="0" cellpadding="0">
vzeventd <b>-h</b></p>
+
<tr valign="top" align="left">
 +
<td width="11%"></td>
 +
<td width="12%">
 +
 
 +
<p style="margin-top: 1em"><b>vzeventd</b></p></td>
 +
<td width="2%"></td>
 +
<td width="13%">
 +
 
 +
<p style="margin-top: 1em">[<b>&minus;v</b>]
 +
[<b>&minus;d</b>]</p> </td>
 +
<td width="62%">
 +
</td></tr>
 +
<tr valign="top" align="left">
 +
<td width="11%"></td>
 +
<td width="12%">
 +
 
 +
<p style="margin-top: 1em"><b>vzeventd</b></p></td>
 +
<td width="2%"></td>
 +
<td width="13%">
 +
 
 +
<p style="margin-top: 1em"><b>&minus;h</b></p></td>
 +
<td width="62%">
 +
</td></tr>
 +
</table>
 +
 
 +
== DESCRIPTION ==
 +
 
 +
<p style="margin-left:11%; margin-top: 1em">This daemon
 +
takes care of events sent by the OpenVZ kernel (via a
 +
netlink socket) and performs required actions associated
 +
with those events, by running specific scripts. Every event
 +
received contains an event name and a container ID.</p>
 +
 
 +
<p style="margin-left:11%; margin-top: 1em">For every known
 +
event, the event script
 +
/usr/libexec/vzctl/scripts/vzevent-<i>event_name</i> is
 +
executed, with container ID being passed to the script as
 +
<b>VEID</b> environment variable. Not-existent events
 +
scripts are ignored. All unknown events are ignored but
 +
logged. <br>
 +
The following events are recognized:</p>
 +
 
 +
<p style="margin-left:22%;"><b>&bull; start <br>
 +
&bull; stop <br>
 +
&bull; mount <br>
 +
&bull; umount <br>
 +
&bull; reboot</b></p>
 +
 
 +
<p style="margin-left:11%; margin-top: 1em">The following
 +
event scripts are provided: <b><br>
 +
vzevent-stop</b></p>
 +
 
 +
<p style="margin-left:22%;">Takes care of removing ARP and
 +
routing records for the given CT from CT0.</p>
 +
 
 +
<p style="margin-left:11%;"><b>vzevent-reboot</b></p>
 +
 
 +
<p style="margin-left:22%;">Takes care of rebooting a given
 +
CT.</p>
  
 
== OPTIONS ==
 
== OPTIONS ==
Line 18: Line 76:
 
<td width="3%">
 
<td width="3%">
  
<p style="margin-top: 1em"><b>-v</b></p></td>
+
<p style="margin-top: 1em"><b>&minus;v</b></p></td>
<td width="3%"></td>
+
<td width="8%"></td>
 
<td width="75%">
 
<td width="75%">
  
 
<p style="margin-top: 1em">Increase verbosity (can be used
 
<p style="margin-top: 1em">Increase verbosity (can be used
 
multiple times).</p></td>
 
multiple times).</p></td>
<td width="8%">
+
<td width="3%">
 
</td></tr>
 
</td></tr>
 
<tr valign="top" align="left">
 
<tr valign="top" align="left">
Line 30: Line 88:
 
<td width="3%">
 
<td width="3%">
  
<p><b>-d</b></p></td>
+
<p><b>&minus;d</b></p></td>
<td width="3%"></td>
+
<td width="8%"></td>
 
<td width="75%">
 
<td width="75%">
  
 
<p>Debug mode (do not daemonize, run in foreground).</p></td>
 
<p>Debug mode (do not daemonize, run in foreground).</p></td>
<td width="8%">
+
<td width="3%">
 
</td></tr>
 
</td></tr>
 
<tr valign="top" align="left">
 
<tr valign="top" align="left">
Line 42: Line 100:
  
 
<p><b>-h</b></p></td>
 
<p><b>-h</b></p></td>
<td width="3%"></td>
+
<td width="8%"></td>
 
<td width="75%">
 
<td width="75%">
  
 
<p>Display help and exit.</p></td>
 
<p>Display help and exit.</p></td>
<td width="8%">
+
<td width="3%">
 
</td></tr>
 
</td></tr>
 
</table>
 
</table>
 
== DESCRIPTION ==
 
 
<p style="margin-left:11%; margin-top: 1em">This daemon
 
takes care of events sent by the OpenVZ kernel (via netlink
 
socket) and performs required actions associated with those
 
events, by running specific scripts. Every event received
 
contains a container ID, which is passed to the script as
 
<b>VEID</b> environment variable.</p>
 
 
<p style="margin-left:11%; margin-top: 1em">Current list of
 
known events and associated <b>vzeventd</b> actions are:
 
<b><br>
 
start</b></p>
 
 
<p style="margin-left:17%;">Ignore.</p>
 
 
<p style="margin-left:11%;"><b>stop</b></p>
 
 
<p style="margin-left:17%;">Run
 
/usr/lib/vzctl/scripts/vzevent-stop. This script takes care
 
of removing ARP and routing records for the given CT from
 
CT0.</p>
 
 
<p style="margin-left:11%;"><b>mount</b></p>
 
 
<p style="margin-left:17%;">Ignore.</p>
 
 
<p style="margin-left:11%;"><b>umount</b></p>
 
 
<p style="margin-left:17%;">Ignore.</p>
 
 
<p style="margin-left:11%;"><b>reboot</b></p>
 
 
<p style="margin-left:17%;">Run
 
/usr/lib/vzctl/scripts/vzevent-reboot. This script takes
 
care of rebooting a given CT.</p>
 
  
 
== EXIT STATUS ==
 
== EXIT STATUS ==
Line 95: Line 116:
  
 
<p style="margin-left:11%; margin-top: 1em">Copyright (C)
 
<p style="margin-left:11%; margin-top: 1em">Copyright (C)
2010, Parallels, Inc. Licensed under GNU GPL.</p>
+
2010-2015, Parallels, Inc. Licensed under GNU GPL.</p>
  
 
== AUTHOR ==
 
== AUTHOR ==
  
 
<p style="margin-left:11%; margin-top: 1em">This manual
 
<p style="margin-left:11%; margin-top: 1em">This manual
page was written by Thorsten Schifferdecker
+
page was initially written by Thorsten Schifferdecker
 
&lt;tsd@debian.systs.org&gt; for the <b>Debian GNU/Linux</b>
 
&lt;tsd@debian.systs.org&gt; for the <b>Debian GNU/Linux</b>
 
system (but may be used by others).</p>
 
system (but may be used by others).</p>

Latest revision as of 18:22, 23 April 2015

NAME[edit]

vzeventd − the OpenVZ events daemon.

SYNOPSIS[edit]

vzeventd

[−v] [−d]

vzeventd

−h

DESCRIPTION[edit]

This daemon takes care of events sent by the OpenVZ kernel (via a netlink socket) and performs required actions associated with those events, by running specific scripts. Every event received contains an event name and a container ID.

For every known event, the event script /usr/libexec/vzctl/scripts/vzevent-event_name is executed, with container ID being passed to the script as VEID environment variable. Not-existent events scripts are ignored. All unknown events are ignored but logged.
The following events are recognized:

• start
• stop
• mount
• umount
• reboot

The following event scripts are provided:
vzevent-stop

Takes care of removing ARP and routing records for the given CT from CT0.

vzevent-reboot

Takes care of rebooting a given CT.

OPTIONS[edit]

−v

Increase verbosity (can be used multiple times).

−d

Debug mode (do not daemonize, run in foreground).

-h

Display help and exit.

EXIT STATUS[edit]

Returns 0 upon success.

LICENSE[edit]

Copyright (C) 2010-2015, Parallels, Inc. Licensed under GNU GPL.

AUTHOR[edit]

This manual page was initially written by Thorsten Schifferdecker <tsd@debian.systs.org> for the Debian GNU/Linux system (but may be used by others).