137 lines
4.1 KiB
HTML
137 lines
4.1 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of NETWORKD-DISPATCHER</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>NETWORKD-DISPATCHER</H1>
|
|
Section: (8)<BR>Updated: 08/19/2019<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
networkd-dispatcher - Dispatcher service for systemd-networkd connection status changes
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<P>
|
|
<B>networkd-dispatcher</B> [-h] [-S <I>SCRIPT_DIR</I>] [-T] [-v] [-q]
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<P>
|
|
Dispatcher daemon for systemd-networkd connection status changes. This daemon is similar to NetworkManager-dispatcher, but is much more limited in the types of events it supports due to the limited nature of <I><A HREF="/cgi-bin/man/man2html?8+systemd-networkd">systemd-networkd</A>(8)</I>.
|
|
<P>
|
|
Desired actions (scripts) are placed into directories that reflect systemd-networkd operational states under <I>SCRIPT_DIR</I> and are executed when the daemon receives the relevant event from systemd-networkd.
|
|
<P>
|
|
The daemon listens for signals from systemd-networkd over dbus, so it should be very light on resources (e.g. no polling). It is meant to be run as a system-wide daemon (as root). This allows it to be used for tasks such as starting a VPN after a connection is established.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<P>
|
|
|
|
<B>-h, --help</B>
|
|
<DL COMPACT><DT id="1"><DD>
|
|
Print command-line syntax and program options to stdout.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-S, --script-dir=</B><B></B><I>SCRIPT_DIR</I>
|
|
<DL COMPACT><DT id="2"><DD>
|
|
Location under which to look for scripts. Like the
|
|
<I>PATH</I>
|
|
environment variable, this may contain multiple directories separated by : and in case multiple directories have scripts with the same name, the earliest directory wins. Defaults to /etc/networkd-dispatcher:/usr/lib/networkd-dispatcher.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-T, --run-startup-triggers</B>
|
|
<DL COMPACT><DT id="3"><DD>
|
|
Generate events reflecting preexisting state and behavior on startup. This can be used to ensure that triggers are belatedly run even if networkd-dispatcher is invoked after systemd-networkd has already started an interface.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-v, --verbose</B>
|
|
<DL COMPACT><DT id="4"><DD>
|
|
Increase verbosity by one level. The default level is
|
|
<I>WARNING</I>. Each use of
|
|
<I>-v</I>
|
|
will increment the log level (towards
|
|
<I>INFO</I>
|
|
or
|
|
<I>DEBUG</I>), and each use of
|
|
<I>-q</I>
|
|
will decrement it (towards
|
|
<I>ERROR</I>
|
|
or
|
|
<I>CRITICAL</I>).
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-q, --quiet</B>
|
|
<DL COMPACT><DT id="5"><DD>
|
|
Decrease verbosity by one level.
|
|
</DL>
|
|
|
|
<A NAME="lbAF"> </A>
|
|
<H2>CONFIGURATION FILES</H2>
|
|
|
|
<P>
|
|
The systemd service reads <I>/etc/default/networkd-dispatcher</I> as an environment file for additional daemon arguments.
|
|
<P>
|
|
The scripts to be run on network changes are in subdirectories <I>routable.d/</I>, <I>dormant.d/</I>, <I>no-carrier.d/</I>, <I>off.d/</I>, <I>carrier.d/</I>, <I>degraded.d/</I> inside <I>SCRIPT_DIR</I>. The default value for <I>SCRIPT_DIR</I> is <I>/etc/networkd-dispatcher:/usr/lib/networkd-dispatcher</I>.
|
|
<P>
|
|
For information about the network operational states exposed by systemd, see <A HREF="/cgi-bin/man/man2html?1+networkctl">networkctl</A>(1).
|
|
<A NAME="lbAG"> </A>
|
|
<H2>RESOURCES</H2>
|
|
|
|
<P>
|
|
GitHub: <A HREF="https://github.com/craftyguy/networkd-dispatcher">https://github.com/craftyguy/networkd-dispatcher</A>
|
|
<A NAME="lbAH"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<P>
|
|
<A HREF="/cgi-bin/man/man2html?8+systemd-networkd">systemd-networkd</A>(8), <A HREF="/cgi-bin/man/man2html?1+networkctl">networkctl</A>(1)
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="6"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="7"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="8"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="9"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="10"><A HREF="#lbAF">CONFIGURATION FILES</A><DD>
|
|
<DT id="11"><A HREF="#lbAG">RESOURCES</A><DD>
|
|
<DT id="12"><A HREF="#lbAH">SEE ALSO</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:06:14 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|