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 ***)
 
Line 39: Line 39:
 
netlink socket) and performs required actions associated
 
netlink socket) and performs required actions associated
 
with those events, by running specific scripts. Every event
 
with those events, by running specific scripts. Every event
received contains a container ID, which is passed to the
+
received contains an event name and a container ID.</p>
script as <b>VEID</b> environment variable.</p>
 
  
<p style="margin-left:11%; margin-top: 1em">Current list of
+
<p style="margin-left:11%; margin-top: 1em">For every known
known events and associated <b>vzeventd</b> actions are:</p>
+
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>
  
<table width="100%" border="0" rules="none" frame="void"
+
<p style="margin-left:22%;"><b>&bull; start <br>
      cellspacing="0" cellpadding="0">
+
&bull; stop <br>
<tr valign="top" align="left">
+
&bull; mount <br>
<td width="11%"></td>
+
&bull; umount <br>
<td width="9%">
+
&bull; reboot</b></p>
 
 
<p><b>start</b></p></td>
 
<td width="2%"></td>
 
<td width="78%">
 
  
<p>Ignore.</p></td></tr>
+
<p style="margin-left:11%; margin-top: 1em">The following
<tr valign="top" align="left">
+
event scripts are provided: <b><br>
<td width="11%"></td>
+
vzevent-stop</b></p>
<td width="9%">
 
  
<p><b>stop</b></p></td>
+
<p style="margin-left:22%;">Takes care of removing ARP and
<td width="2%"></td>
+
routing records for the given CT from CT0.</p>
<td width="78%">
 
  
<p>Run /usr/libexec/vzctl/scripts/vzevent-stop. This script
+
<p style="margin-left:11%;"><b>vzevent-reboot</b></p>
takes care of removing ARP and routing records for the given
 
CT from CT0.</p></td></tr>
 
<tr valign="top" align="left">
 
<td width="11%"></td>
 
<td width="9%">
 
  
<p><b>mount</b></p></td>
+
<p style="margin-left:22%;">Takes care of rebooting a given
<td width="2%"></td>
+
CT.</p>
<td width="78%">
 
 
 
<p>Ignore.</p></td></tr>
 
<tr valign="top" align="left">
 
<td width="11%"></td>
 
<td width="9%">
 
 
 
<p><b>umount</b></p></td>
 
<td width="2%"></td>
 
<td width="78%">
 
 
 
<p>Ignore.</p></td></tr>
 
<tr valign="top" align="left">
 
<td width="11%"></td>
 
<td width="9%">
 
 
 
<p><b>reboot</b></p></td>
 
<td width="2%"></td>
 
<td width="78%">
 
 
 
<p>Run /usr/libexec/vzctl/scripts/vzevent-reboot. This
 
script takes care of rebooting a given CT.</p></td></tr>
 
</table>
 
  
 
== OPTIONS ==
 
== OPTIONS ==
Line 145: Line 116:
  
 
<p style="margin-left:11%; margin-top: 1em">Copyright (C)
 
<p style="margin-left:11%; margin-top: 1em">Copyright (C)
2010-2013, Parallels, Inc. Licensed under GNU GPL.</p>
+
2010-2015, Parallels, Inc. Licensed under GNU GPL.</p>
  
 
== AUTHOR ==
 
== AUTHOR ==

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).