Editing Man/vzeventd.8

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
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 an event name and a container ID.</p>
+
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">For every known
+
<p style="margin-left:11%; margin-top: 1em">Current list of
event, the event script
+
known events and associated <b>vzeventd</b> actions are:</p>
/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>
+
<table width="100%" border="0" rules="none" frame="void"
&bull; stop <br>
+
      cellspacing="0" cellpadding="0">
&bull; mount <br>
+
<tr valign="top" align="left">
&bull; umount <br>
+
<td width="11%"></td>
&bull; reboot</b></p>
+
<td width="9%">
 +
 
 +
<p><b>start</b></p></td>
 +
<td width="2%"></td>
 +
<td width="78%">
  
<p style="margin-left:11%; margin-top: 1em">The following
+
<p>Ignore.</p></td></tr>
event scripts are provided: <b><br>
+
<tr valign="top" align="left">
vzevent-stop</b></p>
+
<td width="11%"></td>
 +
<td width="9%">
  
<p style="margin-left:22%;">Takes care of removing ARP and
+
<p><b>stop</b></p></td>
routing records for the given CT from CT0.</p>
+
<td width="2%"></td>
 +
<td width="78%">
  
<p style="margin-left:11%;"><b>vzevent-reboot</b></p>
+
<p>Run /usr/libexec/vzctl/scripts/vzevent-stop. This script
 +
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 style="margin-left:22%;">Takes care of rebooting a given
+
<p><b>mount</b></p></td>
CT.</p>
+
<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>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 116: Line 145:
  
 
<p style="margin-left:11%; margin-top: 1em">Copyright (C)
 
<p style="margin-left:11%; margin-top: 1em">Copyright (C)
2010-2015, Parallels, Inc. Licensed under GNU GPL.</p>
+
2010-2013, Parallels, Inc. Licensed under GNU GPL.</p>
  
 
== AUTHOR ==
 
== AUTHOR ==

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)