1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>systemd.socket</title><meta name="generator" content="DocBook XSL Stylesheets V1.76.1"/></head><body><div class="refentry" title="systemd.socket"><a id="systemd.socket"/><div class="titlepage"/><div class="refnamediv"><h2>Name</h2><p>systemd.socket — systemd socket configuration files</p></div><div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><p><code class="filename">systemd.socket</code></p></div><div class="refsect1" title="Description"><a id="id555090"/><h2>Description</h2><p>A unit configuration file whose name ends in
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>systemd.socket</title><meta name="generator" content="DocBook XSL Stylesheets V1.76.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" title="systemd.socket"><a name="systemd.socket"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>systemd.socket — systemd socket configuration files</p></div><div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><p><code class="filename">systemd.socket</code></p></div><div class="refsect1" title="Description"><a name="id292645"></a><h2>Description</h2><p>A unit configuration file whose name ends in
4
2
<code class="filename">.socket</code> encodes information about
5
3
an IPC or network socket or a file system FIFO
6
4
controlled and supervised by systemd, for socket-based
57
55
<span class="citerefentry"><span class="refentrytitle">inetd</span>(8)</span>-style
58
56
socket passing (i.e. sockets passed in via STDIN and
59
57
STDOUT, using <code class="varname">StandardInput=socket</code>
60
in the service file).</p></div><div class="refsect1" title="Options"><a id="id522611"/><h2>Options</h2><p>Socket files must include a [Socket] section,
58
in the service file).</p></div><div class="refsect1" title="Options"><a name="id324942"></a><h2>Options</h2><p>Socket files must include a [Socket] section,
61
59
which carries information about the socket or FIFO it
62
60
supervises. A number of options that may be used in
63
61
this section are shared with other unit types. These
73
71
slash (/), it is read as file system
74
72
socket in the AF_UNIX socket
75
73
family.</p><p>If the address starts with an
76
ampersand (@) it is read as abstract
74
at symbol (@) it is read as abstract
77
75
namespace socket in the AF_UNIX
78
76
family. The @ is replaced with a NUL
79
77
character before binding. For details
237
235
socket. This controls the SO_KEEPALIVE
238
236
socket option (see
239
237
<span class="citerefentry"><span class="refentrytitle">socket</span>(7)</span>
240
and the <a class="ulink" href="http://www.tldp.org/HOWTO/html_single/TCP-Keepalive-HOWTO/">TCP
238
and the <a class="ulink" href="http://www.tldp.org/HOWTO/html_single/TCP-Keepalive-HOWTO/" target="_top">TCP
241
239
Keepalive HOWTO</a> for details.)
243
241
<code class="option">false</code>.</p></dd><dt><span class="term"><code class="varname">Priority=</code></span></dt><dd><p>Takes an integer
307
305
socket to a specific IP
308
306
address. Defaults to <code class="option">false</code>.</p></dd><dt><span class="term"><code class="varname">Transparent=</code></span></dt><dd><p>Takes a boolean
309
307
value. Controls the IP_TRANSPARENT
308
socket option. Defaults to
311
309
<code class="option">false</code>.</p></dd><dt><span class="term"><code class="varname">Broadcast=</code></span></dt><dd><p>Takes a boolean
312
310
value. This controls the SO_BROADCAST
313
option, which allows broadcast
311
socket option, which allows broadcast
314
312
datagrams to be sent from this
315
313
socket. Defaults to
314
<code class="option">false</code>.</p></dd><dt><span class="term"><code class="varname">PassCredentials=</code></span></dt><dd><p>Takes a boolean
315
value. This controls the SO_PASSCRED
316
socket option, which allows AF_UNIX sockets to
317
receive the credentials of the sending
318
process in an ancillary message.
320
<code class="option">false</code>.</p></dd><dt><span class="term"><code class="varname">PassSecurity=</code></span></dt><dd><p>Takes a boolean
321
value. This controls the SO_PASSSEC
322
socket option, which allows AF_UNIX
323
sockets to receive the security
324
context of the sending process in an
325
ancillary message. Defaults to
316
326
<code class="option">false</code>.</p></dd><dt><span class="term"><code class="varname">TCPCongestion=</code></span></dt><dd><p>Takes a string
317
327
value. Controls the TCP congestion
318
328
algorithm used by this socket. Should
380
390
that bears the same name as the socket
381
391
(ignoring the different suffixes). In
382
392
most cases it should not be necessary
383
to use this option.</p></dd></dl></div></div><div class="refsect1" title="See Also"><a id="id564670"/><h2>See Also</h2><p>
393
to use this option.</p></dd></dl></div></div><div class="refsect1" title="See Also"><a name="id334526"></a><h2>See Also</h2><p>
384
394
<span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span>,
385
395
<span class="citerefentry"><span class="refentrytitle">systemctl</span>(8)</span>,
386
396
<span class="citerefentry"><span class="refentrytitle">systemd.unit</span>(5)</span>,