summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2014-06-02 14:07:46 -0500
committerDan Williams <dcbw@redhat.com>2014-06-06 13:43:46 -0500
commit1383f4bc14a83b56e06210222ecf2e6b18dfc18e (patch)
tree15deab8378ca11f019e39baa0fb6c907aad0a994 /man
parent7eaaa6a475b3d73e0967c9fa928268c1498f6b50 (diff)
downloadNetworkManager-1383f4bc14a83b56e06210222ecf2e6b18dfc18e.tar.gz
dispatcher: use separate directories for pre-up/pre-down events
To ensure that NetworkManager does not block needlessly for events which have no scripts, require scripts that respond to blocking events to opt into the action.
Diffstat (limited to 'man')
-rw-r--r--man/NetworkManager.xml49
1 files changed, 46 insertions, 3 deletions
diff --git a/man/NetworkManager.xml b/man/NetworkManager.xml
index 70e49aa16a..229c390cdc 100644
--- a/man/NetworkManager.xml
+++ b/man/NetworkManager.xml
@@ -53,9 +53,9 @@
<title>Dispatcher scripts</title>
<para>
NetworkManager will execute scripts in the
- /etc/NetworkManager/dispatcher.d directory in alphabetical order
- in response to network events. Each script should be a regular
- executable file, owned by root. Furthermore, it must not be
+ /etc/NetworkManager/dispatcher.d directory or subdirectories in
+ alphabetical order in response to network events. Each script should
+ be a regular executable file owned by root. Furthermore, it must not be
writable by group or other, and not setuid.
</para>
<para>
@@ -65,22 +65,65 @@
<para>The actions are:</para>
<variablelist class="dispatcher-options">
<varlistentry>
+ <term><varname>pre-up</varname></term>
+ <listitem><para>The interface is connected to the network but is not
+ yet fully activated. Scripts acting on this event must be placed or
+ symlinked into the /etc/NetworkManager/dispatcher.d/pre-up.d directory,
+ and NetworkManager will wait for script execution to complete before
+ indicating to applications that the interface is fully activated.
+ </para></listitem>
+ </varlistentry>
+ <varlistentry>
<term><varname>up</varname></term>
<listitem><para>The interface has been activated.</para></listitem>
</varlistentry>
<varlistentry>
+ <term><varname>pre-down</varname></term>
+ <listitem><para>The interface will be deactivated but has not yet been
+ disconnected from the network. Scripts acting on this event must be
+ placed or symlinked into the /etc/NetworkManager/dispatcher.d/pre-down.d
+ directory, and NetworkManager will wait for script execution to complete
+ before disconnecting the interface from its network. Note that this
+ event is not emitted for forced disconnections, like when carrier is
+ lost or a wireless signal fades. It is only emitted when there is
+ an opportunity to cleanly handle a network disconnection event.
+ </para></listitem>
+ </varlistentry>
+ <varlistentry>
<term><varname>down</varname></term>
<listitem><para>
The interface has been deactivated.
</para></listitem>
</varlistentry>
<varlistentry>
+ <term><varname>vpn-pre-up</varname></term>
+ <listitem><para>The VPN is connected to the network but is not yet
+ fully activated. Scripts acting on this event must be placed or
+ symlinked into the /etc/NetworkManager/dispatcher.d/pre-up.d directory,
+ and NetworkManager will wait for script execution to complete before
+ indicating to applications that the VPN is fully activated.
+ </para></listitem>
+ </varlistentry>
+ <varlistentry>
<term><varname>vpn-up</varname></term>
<listitem><para>
A VPN connection has been activated.
</para></listitem>
</varlistentry>
<varlistentry>
+ <term><varname>vpn-pre-down</varname></term>
+ <listitem><para>The VPN will be deactivated but has not yet been
+ disconnected from the network. Scripts acting on this event must be
+ placed or symlinked into the /etc/NetworkManager/dispatcher.d/pre-down.d
+ directory, and NetworkManager will wait for script execution to complete
+ before disconnecting the VPN from its network. Note that this
+ event is not emitted for forced disconnections, like when the VPN
+ terminates unexpectedly or general connectivity is lost. It is only
+ emitted when there is an opportunity to cleanly handle a VPN
+ disconnection event.
+ </para></listitem>
+ </varlistentry>
+ <varlistentry>
<term><varname>vpn-down</varname></term>
<listitem><para>
A VPN connection has been deactivated.