.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] \fP .\} .if t \{\ . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff .if n \{\ . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} .if t \{\ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' .ds 8 \h'\*(#H'\(*b\h'-\*(#H' .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] .ds ae a\h'-(\w'a'u*4/10)'e .ds Ae A\h'-(\w'A'u*4/10)'E . \" corrections for vroff .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' . \" for low resolution devices (crt and lpr) .if \n(.H>23 .if \n(.V>19 \ \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} .rm #[ #] #H #V #F C .\" ======================================================================== .\" .IX Title "Config::Model::models::Systemd::Section::Socket 3pm" .TH Config::Model::models::Systemd::Section::Socket 3pm "2020-12-20" "perl v5.32.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Config::Model::models::Systemd::Section::Socket \- Configuration class Systemd::Section::Socket .SH "DESCRIPTION" .IX Header "DESCRIPTION" Configuration classes used by Config::Model .PP A unit configuration file whose name ends in \&\f(CW\*(C`.socket\*(C'\fR encodes information about an \s-1IPC\s0 or network socket or a file system \s-1FIFO\s0 controlled and supervised by systemd, for socket-based activation. .PP This man page lists the configuration options specific to this unit type. See \&\fBsystemd.unit\fR\|(5) for the common options of all unit configuration files. The common configuration items are configured in the generic [Unit] and [Install] sections. The socket specific configuration options are configured in the [Socket] section. .PP Additional options are listed in \&\fBsystemd.exec\fR\|(5), which define the execution environment the \&\f(CW\*(C`ExecStartPre\*(C'\fR, \f(CW\*(C`ExecStartPost\*(C'\fR, \&\f(CW\*(C`ExecStopPre\*(C'\fR and \f(CW\*(C`ExecStopPost\*(C'\fR commands are executed in, and in \&\fBsystemd.kill\fR\|(5), which define the way the processes are terminated, and in \&\fBsystemd.resource\-control\fR\|(5), which configure resource control settings for the processes of the socket. .PP For each socket unit, a matching service unit must exist, describing the service to start on incoming traffic on the socket (see \&\fBsystemd.service\fR\|(5) for more information about .service units). The name of the \&.service unit is by default the same as the name of the .socket unit, but can be altered with the \f(CW\*(C`Service\*(C'\fR option described below. Depending on the setting of the \&\f(CW\*(C`Accept\*(C'\fR option described below, this .service unit must either be named like the .socket unit, but with the suffix replaced, unless overridden with \f(CW\*(C`Service\*(C'\fR; or it must be a template unit named the same way. Example: a socket file \f(CW\*(C`foo.socket\*(C'\fR needs a matching service \f(CW\*(C`foo.service\*(C'\fR if \&\f(CW\*(C`Accept=no\*(C'\fR is set. If \&\f(CW\*(C`Accept=yes\*(C'\fR is set, a service template \&\f(CW\*(C`foo@.service\*(C'\fR must exist from which services are instantiated for each incoming connection. .PP No implicit \f(CW\*(C`WantedBy\*(C'\fR or \&\f(CW\*(C`RequiredBy\*(C'\fR dependency from the socket to the service is added. This means that the service may be started without the socket, in which case it must be able to open sockets by itself. To prevent this, an explicit \&\f(CW\*(C`Requires\*(C'\fR dependency may be added. .PP Socket units may be used to implement on-demand starting of services, as well as parallelized starting of services. See the blog stories linked at the end for an introduction. .PP Note that the daemon software configured for socket activation with socket units needs to be able to accept sockets from systemd, either via systemd's native socket passing interface (see \&\fBsd_listen_fds\fR\|(3) for details about the precise protocol used and the order in which the file descriptors are passed) or via traditional \fBinetd\fR\|(8)\-style socket passing (i.e. sockets passed in via standard input and output, using \&\f(CW\*(C`StandardInput=socket\*(C'\fR in the service file). .PP All network sockets allocated through \f(CW\*(C`.socket\*(C'\fR units are allocated in the host's network namespace (see \fBnetwork_namespaces\fR\|(7)). This does not mean however that the service activated by a configured socket unit has to be part of the host's network namespace as well. It is supported and even good practice to run services in their own network namespace (for example through \f(CW\*(C`PrivateNetwork\*(C'\fR, see \&\fBsystemd.exec\fR\|(5)), receiving only the sockets configured through socket-activation from the host's namespace. In such a set-up communication within the host's network namespace is only permitted through the activation sockets passed in while all sockets allocated from the service code itself will be associated with the service's own namespace, and thus possibly subject to a a much more restrictive configuration. This configuration class was generated from systemd documentation. by parse\-man.pl .SH "Elements" .IX Header "Elements" .SS "ListenStream" .IX Subsection "ListenStream" Specifies an address to listen on for a stream (\f(CW\*(C`SOCK_STREAM\*(C'\fR), datagram (\f(CW\*(C`SOCK_DGRAM\*(C'\fR), or sequential packet (\f(CW\*(C`SOCK_SEQPACKET\*(C'\fR) socket, respectively. The address can be written in various formats: .PP If the address starts with a slash (\f(CW\*(C`/\*(C'\fR), it is read as file system socket in the \f(CW\*(C`AF_UNIX\*(C'\fR socket family. .PP If the address starts with an at symbol (\f(CW\*(C`@\*(C'\fR), it is read as abstract namespace socket in the \f(CW\*(C`AF_UNIX\*(C'\fR family. The \&\f(CW\*(C`@\*(C'\fR is replaced with a \&\f(CW\*(C`NUL\*(C'\fR character before binding. For details, see \&\fBunix\fR\|(7). .PP If the address string is a single number, it is read as port number to listen on via IPv6. Depending on the value of \&\f(CW\*(C`BindIPv6Only\*(C'\fR (see below) this might result in the service being available via both IPv6 and IPv4 (default) or just via IPv6. .PP If the address string is a string in the format \&\f(CW\*(C`v.w.x.y:z\*(C'\fR, it is interpreted as IPv4 address v.w.x.y and port z. .PP If the address string is a string in the format \&\f(CW\*(C`[x]:y\*(C'\fR, it is interpreted as IPv6 address x and port y. An optional interface scope (interface name or number) may be specified after a \f(CW\*(C`%\*(C'\fR symbol: \&\f(CW\*(C`[x]:y%dev\*(C'\fR. Interface scopes are only useful with link-local addresses, because the kernel ignores them in other cases. Note that if an address is specified as IPv6, it might still make the service available via IPv4 too, depending on the \f(CW\*(C`BindIPv6Only\*(C'\fR setting (see below). .PP If the address string is a string in the format \&\f(CW\*(C`vsock:x:y\*(C'\fR, it is read as \s-1CID\s0 x on a port y address in the \&\f(CW\*(C`AF_VSOCK\*(C'\fR family. The \s-1CID\s0 is a unique 32\-bit integer identifier in \&\f(CW\*(C`AF_VSOCK\*(C'\fR analogous to an \s-1IP\s0 address. Specifying the \s-1CID\s0 is optional, and may be set to the empty string. .PP Note that \f(CW\*(C`SOCK_SEQPACKET\*(C'\fR (i.e. \&\f(CW\*(C`ListenSequentialPacket\*(C'\fR) is only available for \f(CW\*(C`AF_UNIX\*(C'\fR sockets. \&\f(CW\*(C`SOCK_STREAM\*(C'\fR (i.e. \&\f(CW\*(C`ListenStream\*(C'\fR) when used for \s-1IP\s0 sockets refers to \s-1TCP\s0 sockets, \f(CW\*(C`SOCK_DGRAM\*(C'\fR (i.e. \&\f(CW\*(C`ListenDatagram\*(C'\fR) to \s-1UDP.\s0 .PP These options may be specified more than once, in which case incoming traffic on any of the sockets will trigger service activation, and all listed sockets will be passed to the service, regardless of whether there is incoming traffic on them or not. If the empty string is assigned to any of these options, the list of addresses to listen on is reset, all prior uses of any of these options will have no effect. .PP It is also possible to have more than one socket unit for the same service when using \f(CW\*(C`Service\*(C'\fR, and the service will receive all the sockets configured in all the socket units. Sockets configured in one unit are passed in the order of configuration, but no ordering between socket units is specified. .PP If an \s-1IP\s0 address is used here, it is often desirable to listen on it before the interface it is configured on is up and running, and even regardless of whether it will be up and running at any point. To deal with this, it is recommended to set the \f(CW\*(C`FreeBind\*(C'\fR option described below. \fI Optional. Type list of uniline. \fR .SS "ListenDatagram" .IX Subsection "ListenDatagram" Specifies an address to listen on for a stream (\f(CW\*(C`SOCK_STREAM\*(C'\fR), datagram (\f(CW\*(C`SOCK_DGRAM\*(C'\fR), or sequential packet (\f(CW\*(C`SOCK_SEQPACKET\*(C'\fR) socket, respectively. The address can be written in various formats: .PP If the address starts with a slash (\f(CW\*(C`/\*(C'\fR), it is read as file system socket in the \f(CW\*(C`AF_UNIX\*(C'\fR socket family. .PP If the address starts with an at symbol (\f(CW\*(C`@\*(C'\fR), it is read as abstract namespace socket in the \f(CW\*(C`AF_UNIX\*(C'\fR family. The \&\f(CW\*(C`@\*(C'\fR is replaced with a \&\f(CW\*(C`NUL\*(C'\fR character before binding. For details, see \&\fBunix\fR\|(7). .PP If the address string is a single number, it is read as port number to listen on via IPv6. Depending on the value of \&\f(CW\*(C`BindIPv6Only\*(C'\fR (see below) this might result in the service being available via both IPv6 and IPv4 (default) or just via IPv6. .PP If the address string is a string in the format \&\f(CW\*(C`v.w.x.y:z\*(C'\fR, it is interpreted as IPv4 address v.w.x.y and port z. .PP If the address string is a string in the format \&\f(CW\*(C`[x]:y\*(C'\fR, it is interpreted as IPv6 address x and port y. An optional interface scope (interface name or number) may be specified after a \f(CW\*(C`%\*(C'\fR symbol: \&\f(CW\*(C`[x]:y%dev\*(C'\fR. Interface scopes are only useful with link-local addresses, because the kernel ignores them in other cases. Note that if an address is specified as IPv6, it might still make the service available via IPv4 too, depending on the \f(CW\*(C`BindIPv6Only\*(C'\fR setting (see below). .PP If the address string is a string in the format \&\f(CW\*(C`vsock:x:y\*(C'\fR, it is read as \s-1CID\s0 x on a port y address in the \&\f(CW\*(C`AF_VSOCK\*(C'\fR family. The \s-1CID\s0 is a unique 32\-bit integer identifier in \&\f(CW\*(C`AF_VSOCK\*(C'\fR analogous to an \s-1IP\s0 address. Specifying the \s-1CID\s0 is optional, and may be set to the empty string. .PP Note that \f(CW\*(C`SOCK_SEQPACKET\*(C'\fR (i.e. \&\f(CW\*(C`ListenSequentialPacket\*(C'\fR) is only available for \f(CW\*(C`AF_UNIX\*(C'\fR sockets. \&\f(CW\*(C`SOCK_STREAM\*(C'\fR (i.e. \&\f(CW\*(C`ListenStream\*(C'\fR) when used for \s-1IP\s0 sockets refers to \s-1TCP\s0 sockets, \f(CW\*(C`SOCK_DGRAM\*(C'\fR (i.e. \&\f(CW\*(C`ListenDatagram\*(C'\fR) to \s-1UDP.\s0 .PP These options may be specified more than once, in which case incoming traffic on any of the sockets will trigger service activation, and all listed sockets will be passed to the service, regardless of whether there is incoming traffic on them or not. If the empty string is assigned to any of these options, the list of addresses to listen on is reset, all prior uses of any of these options will have no effect. .PP It is also possible to have more than one socket unit for the same service when using \f(CW\*(C`Service\*(C'\fR, and the service will receive all the sockets configured in all the socket units. Sockets configured in one unit are passed in the order of configuration, but no ordering between socket units is specified. .PP If an \s-1IP\s0 address is used here, it is often desirable to listen on it before the interface it is configured on is up and running, and even regardless of whether it will be up and running at any point. To deal with this, it is recommended to set the \f(CW\*(C`FreeBind\*(C'\fR option described below. \fI Optional. Type list of uniline. \fR .SS "ListenSequentialPacket" .IX Subsection "ListenSequentialPacket" Specifies an address to listen on for a stream (\f(CW\*(C`SOCK_STREAM\*(C'\fR), datagram (\f(CW\*(C`SOCK_DGRAM\*(C'\fR), or sequential packet (\f(CW\*(C`SOCK_SEQPACKET\*(C'\fR) socket, respectively. The address can be written in various formats: .PP If the address starts with a slash (\f(CW\*(C`/\*(C'\fR), it is read as file system socket in the \f(CW\*(C`AF_UNIX\*(C'\fR socket family. .PP If the address starts with an at symbol (\f(CW\*(C`@\*(C'\fR), it is read as abstract namespace socket in the \f(CW\*(C`AF_UNIX\*(C'\fR family. The \&\f(CW\*(C`@\*(C'\fR is replaced with a \&\f(CW\*(C`NUL\*(C'\fR character before binding. For details, see \&\fBunix\fR\|(7). .PP If the address string is a single number, it is read as port number to listen on via IPv6. Depending on the value of \&\f(CW\*(C`BindIPv6Only\*(C'\fR (see below) this might result in the service being available via both IPv6 and IPv4 (default) or just via IPv6. .PP If the address string is a string in the format \&\f(CW\*(C`v.w.x.y:z\*(C'\fR, it is interpreted as IPv4 address v.w.x.y and port z. .PP If the address string is a string in the format \&\f(CW\*(C`[x]:y\*(C'\fR, it is interpreted as IPv6 address x and port y. An optional interface scope (interface name or number) may be specified after a \f(CW\*(C`%\*(C'\fR symbol: \&\f(CW\*(C`[x]:y%dev\*(C'\fR. Interface scopes are only useful with link-local addresses, because the kernel ignores them in other cases. Note that if an address is specified as IPv6, it might still make the service available via IPv4 too, depending on the \f(CW\*(C`BindIPv6Only\*(C'\fR setting (see below). .PP If the address string is a string in the format \&\f(CW\*(C`vsock:x:y\*(C'\fR, it is read as \s-1CID\s0 x on a port y address in the \&\f(CW\*(C`AF_VSOCK\*(C'\fR family. The \s-1CID\s0 is a unique 32\-bit integer identifier in \&\f(CW\*(C`AF_VSOCK\*(C'\fR analogous to an \s-1IP\s0 address. Specifying the \s-1CID\s0 is optional, and may be set to the empty string. .PP Note that \f(CW\*(C`SOCK_SEQPACKET\*(C'\fR (i.e. \&\f(CW\*(C`ListenSequentialPacket\*(C'\fR) is only available for \f(CW\*(C`AF_UNIX\*(C'\fR sockets. \&\f(CW\*(C`SOCK_STREAM\*(C'\fR (i.e. \&\f(CW\*(C`ListenStream\*(C'\fR) when used for \s-1IP\s0 sockets refers to \s-1TCP\s0 sockets, \f(CW\*(C`SOCK_DGRAM\*(C'\fR (i.e. \&\f(CW\*(C`ListenDatagram\*(C'\fR) to \s-1UDP.\s0 .PP These options may be specified more than once, in which case incoming traffic on any of the sockets will trigger service activation, and all listed sockets will be passed to the service, regardless of whether there is incoming traffic on them or not. If the empty string is assigned to any of these options, the list of addresses to listen on is reset, all prior uses of any of these options will have no effect. .PP It is also possible to have more than one socket unit for the same service when using \f(CW\*(C`Service\*(C'\fR, and the service will receive all the sockets configured in all the socket units. Sockets configured in one unit are passed in the order of configuration, but no ordering between socket units is specified. .PP If an \s-1IP\s0 address is used here, it is often desirable to listen on it before the interface it is configured on is up and running, and even regardless of whether it will be up and running at any point. To deal with this, it is recommended to set the \f(CW\*(C`FreeBind\*(C'\fR option described below. \fI Optional. Type list of uniline. \fR .SS "ListenFIFO" .IX Subsection "ListenFIFO" Specifies a file system \s-1FIFO\s0 (see \fBfifo\fR\|(7) for details) to listen on. This expects an absolute file system path as argument. Behavior otherwise is very similar to the \f(CW\*(C`ListenDatagram\*(C'\fR directive above. \fI Optional. Type list of uniline. \fR .SS "ListenSpecial" .IX Subsection "ListenSpecial" Specifies a special file in the file system to listen on. This expects an absolute file system path as argument. Behavior otherwise is very similar to the \&\f(CW\*(C`ListenFIFO\*(C'\fR directive above. Use this to open character device nodes as well as special files in \&\f(CW\*(C`/proc/\*(C'\fR and \&\f(CW\*(C`/sys/\*(C'\fR. \fI Optional. Type list of uniline. \fR .SS "ListenNetlink" .IX Subsection "ListenNetlink" Specifies a Netlink family to create a socket for to listen on. This expects a short string referring to the \&\f(CW\*(C`AF_NETLINK\*(C'\fR family name (such as \&\f(CW\*(C`audit\*(C'\fR or \f(CW\*(C`kobject\-uevent\*(C'\fR) as argument, optionally suffixed by a whitespace followed by a multicast group integer. Behavior otherwise is very similar to the \f(CW\*(C`ListenDatagram\*(C'\fR directive above. \fI Optional. Type list of uniline. \fR .SS "ListenMessageQueue" .IX Subsection "ListenMessageQueue" Specifies a \s-1POSIX\s0 message queue name to listen on (see \fBmq_overview\fR\|(7) for details). This expects a valid message queue name (i.e. beginning with \&\f(CW\*(C`/\*(C'\fR). Behavior otherwise is very similar to the \f(CW\*(C`ListenFIFO\*(C'\fR directive above. On Linux message queue descriptors are actually file descriptors and can be inherited between processes. \fI Optional. Type list of uniline. \fR .SS "ListenUSBFunction" .IX Subsection "ListenUSBFunction" Specifies a \s-1USB\s0 FunctionFS endpoints location to listen on, for implementation of \s-1USB\s0 gadget functions. This expects an absolute file system path of a FunctionFS mount point as the argument. Behavior otherwise is very similar to the \f(CW\*(C`ListenFIFO\*(C'\fR directive above. Use this to open the FunctionFS endpoint \&\f(CW\*(C`ep0\*(C'\fR. When using this option, the activated service has to have the \&\f(CW\*(C`USBFunctionDescriptors\*(C'\fR and \&\f(CW\*(C`USBFunctionStrings\*(C'\fR options set. \&\fI Optional. Type list of uniline. \fR .SS "SocketProtocol" .IX Subsection "SocketProtocol" Takes one of \f(CW\*(C`udplite\*(C'\fR or \f(CW\*(C`sctp\*(C'\fR. The socket will use the UDP-Lite (\f(CW\*(C`IPPROTO_UDPLITE\*(C'\fR) or \s-1SCTP\s0 (\f(CW\*(C`IPPROTO_SCTP\*(C'\fR) protocol, respectively. \fI Optional. Type enum. choice: 'udplite', 'sctp'. \fR .SS "BindIPv6Only" .IX Subsection "BindIPv6Only" Takes one of \f(CW\*(C`default\*(C'\fR, \&\f(CW\*(C`both\*(C'\fR or \f(CW\*(C`ipv6\-only\*(C'\fR. Controls the \s-1IPV6_V6ONLY\s0 socket option (see \&\fBipv6\fR\|(7) for details). If \f(CW\*(C`both\*(C'\fR, IPv6 sockets bound will be accessible via both IPv4 and IPv6. If \&\f(CW\*(C`ipv6\-only\*(C'\fR, they will be accessible via IPv6 only. If \f(CW\*(C`default\*(C'\fR (which is the default, surprise!), the system wide default setting is used, as controlled by \&\f(CW\*(C`/proc/sys/net/ipv6/bindv6only\*(C'\fR, which in turn defaults to the equivalent of \&\f(CW\*(C`both\*(C'\fR. \fI Optional. Type enum. choice: 'default', 'both', 'ipv6\-only'. \fR .SS "Backlog" .IX Subsection "Backlog" Takes an unsigned integer argument. Specifies the number of connections to queue that have not been accepted yet. This setting matters only for stream and sequential packet sockets. See \&\fBlisten\fR\|(2) for details. Defaults to \s-1SOMAXCONN\s0 (128). \fI Optional. Type uniline. \fR .SS "BindToDevice" .IX Subsection "BindToDevice" Specifies a network interface name to bind this socket to. If set, traffic will only be accepted from the specified network interfaces. This controls the \&\f(CW\*(C`SO_BINDTODEVICE\*(C'\fR socket option (see \fBsocket\fR\|(7) for details). If this option is used, an implicit dependency from this socket unit on the network interface device unit is created (see \fBsystemd.device\fR\|(5)). Note that setting this parameter might result in additional dependencies to be added to the unit (see above). \fI Optional. Type uniline. \fR .SS "SocketUser" .IX Subsection "SocketUser" Takes a \s-1UNIX\s0 user/group name. When specified, all \f(CW\*(C`AF_UNIX\*(C'\fR sockets and \s-1FIFO\s0 nodes in the file system are owned by the specified user and group. If unset (the default), the nodes are owned by the root user/group (if run in system context) or the invoking user/group (if run in user context). If only a user is specified but no group, then the group is derived from the user's default group. \fI Optional. Type uniline. \fR .SS "SocketGroup" .IX Subsection "SocketGroup" Takes a \s-1UNIX\s0 user/group name. When specified, all \f(CW\*(C`AF_UNIX\*(C'\fR sockets and \s-1FIFO\s0 nodes in the file system are owned by the specified user and group. If unset (the default), the nodes are owned by the root user/group (if run in system context) or the invoking user/group (if run in user context). If only a user is specified but no group, then the group is derived from the user's default group. \fI Optional. Type uniline. \fR .SS "SocketMode" .IX Subsection "SocketMode" If listening on a file system socket or \s-1FIFO,\s0 this option specifies the file system access mode used when creating the file node. Takes an access mode in octal notation. Defaults to 0666. \fI Optional. Type uniline. \fR .SS "DirectoryMode" .IX Subsection "DirectoryMode" If listening on a file system socket or \s-1FIFO,\s0 the parent directories are automatically created if needed. This option specifies the file system access mode used when creating these directories. Takes an access mode in octal notation. Defaults to 0755. \fI Optional. Type uniline. \fR .SS "Accept" .IX Subsection "Accept" Takes a boolean argument. If yes, a service instance is spawned for each incoming connection and only the connection socket is passed to it. If no, all listening sockets themselves are passed to the started service unit, and only one service unit is spawned for all connections (also see above). This value is ignored for datagram sockets and FIFOs where a single service unit unconditionally handles all incoming traffic. Defaults to \f(CW\*(C`no\*(C'\fR. For performance reasons, it is recommended to write new daemons only in a way that is suitable for \&\f(CW\*(C`Accept=no\*(C'\fR. A daemon listening on an \&\f(CW\*(C`AF_UNIX\*(C'\fR socket may, but does not need to, call \&\fBclose\fR\|(2) on the received socket before exiting. However, it must not unlink the socket from a file system. It should not invoke \&\fBshutdown\fR\|(2) on sockets it got with \f(CW\*(C`Accept=no\*(C'\fR, but it may do so for sockets it got with \&\f(CW\*(C`Accept=yes\*(C'\fR set. Setting \&\f(CW\*(C`Accept=yes\*(C'\fR is mostly useful to allow daemons designed for usage with \&\fBinetd\fR\|(8) to work unmodified with systemd socket activation. .PP For IPv4 and IPv6 connections, the \f(CW\*(C`REMOTE_ADDR\*(C'\fR environment variable will contain the remote \s-1IP\s0 address, and \f(CW\*(C`REMOTE_PORT\*(C'\fR will contain the remote port. This is the same as the format used by \s-1CGI.\s0 For \f(CW\*(C`SOCK_RAW\*(C'\fR, the port is the \s-1IP\s0 protocol. \fI Optional. Type boolean. \fR .SS "Writable" .IX Subsection "Writable" Takes a boolean argument. May only be used in conjunction with \f(CW\*(C`ListenSpecial\*(C'\fR. If true, the specified special file is opened in read-write mode, if false, in read-only mode. Defaults to false. \fI Optional. Type boolean. \fR .SS "FlushPending" .IX Subsection "FlushPending" Takes a boolean argument. May only be used when \&\f(CW\*(C`Accept=no\*(C'\fR. If yes, the socket's buffers are cleared after the triggered service exited. This causes any pending data to be flushed and any pending incoming connections to be rejected. If no, the socket's buffers won't be cleared, permitting the service to handle any pending connections after restart, which is the usually expected behaviour. Defaults to \f(CW\*(C`no\*(C'\fR. \&\fI Optional. Type boolean. \fR .SS "MaxConnections" .IX Subsection "MaxConnections" The maximum number of connections to simultaneously run services instances for, when \&\f(CW\*(C`Accept=yes\*(C'\fR is set. If more concurrent connections are coming in, they will be refused until at least one existing connection is terminated. This setting has no effect on sockets configured with \&\f(CW\*(C`Accept=no\*(C'\fR or datagram sockets. Defaults to 64. \fI Optional. Type uniline. \fR .SS "MaxConnectionsPerSource" .IX Subsection "MaxConnectionsPerSource" The maximum number of connections for a service per source \s-1IP\s0 address. This is very similar to the \f(CW\*(C`MaxConnections\*(C'\fR directive above. Disabled by default. \fI Optional. Type uniline. \fR .SS "KeepAlive" .IX Subsection "KeepAlive" Takes a boolean argument. If true, the \s-1TCP/IP\s0 stack will send a keep alive message after 2h (depending on the configuration of \&\f(CW\*(C`/proc/sys/net/ipv4/tcp_keepalive_time\*(C'\fR) for all \s-1TCP\s0 streams accepted on this socket. This controls the \f(CW\*(C`SO_KEEPALIVE\*(C'\fR socket option (see \fBsocket\fR\|(7) and the \s-1TCP\s0 Keepalive \&\s-1HOWTO\s0 for details.) Defaults to \f(CW\*(C`false\*(C'\fR. \fI Optional. Type boolean. \fR .SS "KeepAliveTimeSec" .IX Subsection "KeepAliveTimeSec" Takes time (in seconds) as argument. The connection needs to remain idle before \s-1TCP\s0 starts sending keepalive probes. This controls the \s-1TCP_KEEPIDLE\s0 socket option (see \&\fBsocket\fR\|(7) and the \s-1TCP\s0 Keepalive \s-1HOWTO\s0 for details.) Defaults value is 7200 seconds (2 hours). \fI Optional. Type integer. \fR .SS "KeepAliveIntervalSec" .IX Subsection "KeepAliveIntervalSec" Takes time (in seconds) as argument between individual keepalive probes, if the socket option \f(CW\*(C`SO_KEEPALIVE\*(C'\fR has been set on this socket. This controls the \&\f(CW\*(C`TCP_KEEPINTVL\*(C'\fR socket option (see \fBsocket\fR\|(7) and the \s-1TCP\s0 Keepalive \&\s-1HOWTO\s0 for details.) Defaults value is 75 seconds. \fI Optional. Type integer. \fR .SS "KeepAliveProbes" .IX Subsection "KeepAliveProbes" Takes an integer as argument. It is the number of unacknowledged probes to send before considering the connection dead and notifying the application layer. This controls the \s-1TCP_KEEPCNT\s0 socket option (see \&\fBsocket\fR\|(7) and the \s-1TCP\s0 Keepalive \s-1HOWTO\s0 for details.) Defaults value is 9. \fI Optional. Type integer. \fR .SS "NoDelay" .IX Subsection "NoDelay" Takes a boolean argument. \s-1TCP\s0 Nagle's algorithm works by combining a number of small outgoing messages, and sending them all at once. This controls the \&\s-1TCP_NODELAY\s0 socket option (see \&\fBtcp\fR\|(7)). Defaults to \f(CW\*(C`false\*(C'\fR. \fI Optional. Type boolean. \fR .SS "Priority" .IX Subsection "Priority" Takes an integer argument controlling the priority for all traffic sent from this socket. This controls the \f(CW\*(C`SO_PRIORITY\*(C'\fR socket option (see \fBsocket\fR\|(7) for details.). \fI Optional. Type integer. \fR .SS "DeferAcceptSec" .IX Subsection "DeferAcceptSec" Takes time (in seconds) as argument. If set, the listening process will be awakened only when data arrives on the socket, and not immediately when connection is established. When this option is set, the \&\f(CW\*(C`TCP_DEFER_ACCEPT\*(C'\fR socket option will be used (see \&\fBtcp\fR\|(7)), and the kernel will ignore initial \s-1ACK\s0 packets without any data. The argument specifies the approximate amount of time the kernel should wait for incoming data before falling back to the normal behavior of honoring empty \s-1ACK\s0 packets. This option is beneficial for protocols where the client sends the data first (e.g. \s-1HTTP,\s0 in contrast to \s-1SMTP\s0), because the server process will not be woken up unnecessarily before it can take any action. .PP If the client also uses the \&\f(CW\*(C`TCP_DEFER_ACCEPT\*(C'\fR option, the latency of the initial connection may be reduced, because the kernel will send data in the final packet establishing the connection (the third packet in the \*(L"three-way handshake\*(R"). .PP Disabled by default. \fI Optional. Type integer. \fR .SS "ReceiveBuffer" .IX Subsection "ReceiveBuffer" Takes an integer argument controlling the receive or send buffer sizes of this socket, respectively. This controls the \f(CW\*(C`SO_RCVBUF\*(C'\fR and \&\f(CW\*(C`SO_SNDBUF\*(C'\fR socket options (see \fBsocket\fR\|(7) for details.). The usual suffixes K, M, G are supported and are understood to the base of 1024. \fI Optional. Type uniline. \fR .SS "SendBuffer" .IX Subsection "SendBuffer" Takes an integer argument controlling the receive or send buffer sizes of this socket, respectively. This controls the \f(CW\*(C`SO_RCVBUF\*(C'\fR and \&\f(CW\*(C`SO_SNDBUF\*(C'\fR socket options (see \fBsocket\fR\|(7) for details.). The usual suffixes K, M, G are supported and are understood to the base of 1024. \fI Optional. Type uniline. \fR .SS "\s-1IPTOS\s0" .IX Subsection "IPTOS" Takes an integer argument controlling the \s-1IP\s0 Type-Of-Service field for packets generated from this socket. This controls the \f(CW\*(C`IP_TOS\*(C'\fR socket option (see \&\fBip\fR\|(7) for details.). Either a numeric string or one of \f(CW\*(C`low\-delay\*(C'\fR, \f(CW\*(C`throughput\*(C'\fR, \&\f(CW\*(C`reliability\*(C'\fR or \f(CW\*(C`low\-cost\*(C'\fR may be specified. \fI Optional. Type integer. \fR .SS "\s-1IPTTL\s0" .IX Subsection "IPTTL" Takes an integer argument controlling the IPv4 Time\-To\-Live/IPv6 Hop-Count field for packets generated from this socket. This sets the \&\f(CW\*(C`IP_TTL\*(C'\fR/\f(CW\*(C`IPV6_UNICAST_HOPS\*(C'\fR socket options (see \fBip\fR\|(7) and \&\fBipv6\fR\|(7) for details.) \fI Optional. Type integer. \fR .SS "Mark" .IX Subsection "Mark" Takes an integer value. Controls the firewall mark of packets generated by this socket. This can be used in the firewall logic to filter packets from this socket. This sets the \&\f(CW\*(C`SO_MARK\*(C'\fR socket option. See \fBiptables\fR\|(8) for details. \fI Optional. Type integer. \fR .SS "ReusePort" .IX Subsection "ReusePort" Takes a boolean value. If true, allows multiple \&\fBbind\fR\|(2)s to this \s-1TCP\s0 or \s-1UDP\s0 port. This controls the \f(CW\*(C`SO_REUSEPORT\*(C'\fR socket option. See \fBsocket\fR\|(7) for details. \fI Optional. Type boolean. \fR .SS "SmackLabel" .IX Subsection "SmackLabel" Takes a string value. Controls the extended attributes \f(CW\*(C`security.SMACK64\*(C'\fR, \&\f(CW\*(C`security.SMACK64IPIN\*(C'\fR and \&\f(CW\*(C`security.SMACK64IPOUT\*(C'\fR, respectively, i.e. the security label of the \s-1FIFO,\s0 or the security label for the incoming or outgoing connections of the socket, respectively. See Smack.txt for details. \fI Optional. Type uniline. \fR .SS "SmackLabelIPIn" .IX Subsection "SmackLabelIPIn" Takes a string value. Controls the extended attributes \f(CW\*(C`security.SMACK64\*(C'\fR, \&\f(CW\*(C`security.SMACK64IPIN\*(C'\fR and \&\f(CW\*(C`security.SMACK64IPOUT\*(C'\fR, respectively, i.e. the security label of the \s-1FIFO,\s0 or the security label for the incoming or outgoing connections of the socket, respectively. See Smack.txt for details. \fI Optional. Type uniline. \fR .SS "SmackLabelIPOut" .IX Subsection "SmackLabelIPOut" Takes a string value. Controls the extended attributes \f(CW\*(C`security.SMACK64\*(C'\fR, \&\f(CW\*(C`security.SMACK64IPIN\*(C'\fR and \&\f(CW\*(C`security.SMACK64IPOUT\*(C'\fR, respectively, i.e. the security label of the \s-1FIFO,\s0 or the security label for the incoming or outgoing connections of the socket, respectively. See Smack.txt for details. \fI Optional. Type uniline. \fR .SS "SELinuxContextFromNet" .IX Subsection "SELinuxContextFromNet" Takes a boolean argument. When true, systemd will attempt to figure out the SELinux label used for the instantiated service from the information handed by the peer over the network. Note that only the security level is used from the information provided by the peer. Other parts of the resulting SELinux context originate from either the target binary that is effectively triggered by socket unit or from the value of the \f(CW\*(C`SELinuxContext\*(C'\fR option. This configuration option only affects sockets with \&\f(CW\*(C`Accept\*(C'\fR mode set to \&\f(CW\*(C`yes\*(C'\fR. Also note that this option is useful only when \s-1MLS/MCS\s0 SELinux policy is deployed. Defaults to \&\f(CW\*(C`false\*(C'\fR. \fI Optional. Type boolean. \fR .SS "PipeSize" .IX Subsection "PipeSize" Takes a size in bytes. Controls the pipe buffer size of FIFOs configured in this socket unit. See \&\fBfcntl\fR\|(2) for details. The usual suffixes K, M, G are supported and are understood to the base of 1024. \fI Optional. Type uniline. \fR .SS "MessageQueueMaxMessages" .IX Subsection "MessageQueueMaxMessages" These two settings take integer values and control the mq_maxmsg field or the mq_msgsize field, respectively, when creating the message queue. Note that either none or both of these variables need to be set. See \&\fBmq_setattr\fR\|(3) for details. \fI Optional. Type uniline. \fR .SS "FreeBind" .IX Subsection "FreeBind" Takes a boolean value. Controls whether the socket can be bound to non-local \s-1IP\s0 addresses. This is useful to configure sockets listening on specific \s-1IP\s0 addresses before those \s-1IP\s0 addresses are successfully configured on a network interface. This sets the \&\f(CW\*(C`IP_FREEBIND\*(C'\fR/\f(CW\*(C`IPV6_FREEBIND\*(C'\fR socket option. For robustness reasons it is recommended to use this option whenever you bind a socket to a specific \s-1IP\s0 address. Defaults to \f(CW\*(C`false\*(C'\fR. \fI Optional. Type boolean. \fR .SS "Transparent" .IX Subsection "Transparent" Takes a boolean value. Controls the \&\f(CW\*(C`IP_TRANSPARENT\*(C'\fR/\f(CW\*(C`IPV6_TRANSPARENT\*(C'\fR socket option. Defaults to \&\f(CW\*(C`false\*(C'\fR. \fI Optional. Type boolean. \fR .SS "Broadcast" .IX Subsection "Broadcast" Takes a boolean value. This controls the \f(CW\*(C`SO_BROADCAST\*(C'\fR socket option, which allows broadcast datagrams to be sent from this socket. Defaults to \&\f(CW\*(C`false\*(C'\fR. \fI Optional. Type boolean. \fR .SS "PassCredentials" .IX Subsection "PassCredentials" Takes a boolean value. This controls the \f(CW\*(C`SO_PASSCRED\*(C'\fR socket option, which allows \f(CW\*(C`AF_UNIX\*(C'\fR sockets to receive the credentials of the sending process in an ancillary message. Defaults to \f(CW\*(C`false\*(C'\fR. \fI Optional. Type boolean. \fR .SS "PassSecurity" .IX Subsection "PassSecurity" Takes a boolean value. This controls the \f(CW\*(C`SO_PASSSEC\*(C'\fR socket option, which allows \f(CW\*(C`AF_UNIX\*(C'\fR sockets to receive the security context of the sending process in an ancillary message. Defaults to \f(CW\*(C`false\*(C'\fR. \fI Optional. Type boolean. \fR .SS "PassPacketInfo" .IX Subsection "PassPacketInfo" Takes a boolean value. This controls the \f(CW\*(C`IP_PKTINFO\*(C'\fR, \&\f(CW\*(C`IPV6_RECVPKTINFO\*(C'\fR, \f(CW\*(C`NETLINK_PKTINFO\*(C'\fR or \&\f(CW\*(C`PACKET_AUXDATA\*(C'\fR socket options, which enable reception of additional per-packet metadata as ancillary message, on \f(CW\*(C`AF_INET\*(C'\fR, \f(CW\*(C`AF_INET6\*(C'\fR, \&\f(CW\*(C`AF_UNIX\*(C'\fR and \f(CW\*(C`AF_PACKET\*(C'\fR sockets. Defaults to \&\f(CW\*(C`false\*(C'\fR. \fI Optional. Type boolean. \fR .SS "Timestamping" .IX Subsection "Timestamping" Takes one of \f(CW\*(C`off\*(C'\fR, \f(CW\*(C`us\*(C'\fR (alias: \&\f(CW\*(C`usec\*(C'\fR, \f(CW\*(C`Xs\*(C'\fR) or \f(CW\*(C`ns\*(C'\fR (alias: \&\f(CW\*(C`nsec\*(C'\fR). This controls the \f(CW\*(C`SO_TIMESTAMP\*(C'\fR or \&\f(CW\*(C`SO_TIMESTAMPNS\*(C'\fR socket options, and enables whether ingress network traffic shall carry timestamping metadata. Defaults to \f(CW\*(C`off\*(C'\fR. \fI Optional. Type enum. choice: 'off', 'us', 'usec', 'Xs', 'ns', 'nsec'. \fR .SS "TCPCongestion" .IX Subsection "TCPCongestion" Takes a string value. Controls the \s-1TCP\s0 congestion algorithm used by this socket. Should be one of \f(CW\*(C`westwood\*(C'\fR, \f(CW\*(C`veno\*(C'\fR, \&\f(CW\*(C`cubic\*(C'\fR, \f(CW\*(C`lp\*(C'\fR or any other available algorithm supported by the \s-1IP\s0 stack. This setting applies only to stream sockets. \fI Optional. Type uniline. \fR .SS "ExecStartPre" .IX Subsection "ExecStartPre" Takes one or more command lines, which are executed before or after the listening sockets/FIFOs are created and bound, respectively. The first token of the command line must be an absolute filename, then followed by arguments for the process. Multiple command lines may be specified following the same scheme as used for \&\f(CW\*(C`ExecStartPre\*(C'\fR of service unit files. \fI Optional. Type list of uniline. \fR .SS "ExecStartPost" .IX Subsection "ExecStartPost" Takes one or more command lines, which are executed before or after the listening sockets/FIFOs are created and bound, respectively. The first token of the command line must be an absolute filename, then followed by arguments for the process. Multiple command lines may be specified following the same scheme as used for \&\f(CW\*(C`ExecStartPre\*(C'\fR of service unit files. \fI Optional. Type list of uniline. \fR .SS "ExecStopPre" .IX Subsection "ExecStopPre" Additional commands that are executed before or after the listening sockets/FIFOs are closed and removed, respectively. Multiple command lines may be specified following the same scheme as used for \&\f(CW\*(C`ExecStartPre\*(C'\fR of service unit files. \fI Optional. Type list of uniline. \fR .SS "ExecStopPost" .IX Subsection "ExecStopPost" Additional commands that are executed before or after the listening sockets/FIFOs are closed and removed, respectively. Multiple command lines may be specified following the same scheme as used for \&\f(CW\*(C`ExecStartPre\*(C'\fR of service unit files. \fI Optional. Type list of uniline. \fR .SS "TimeoutSec" .IX Subsection "TimeoutSec" Configures the time to wait for the commands specified in \f(CW\*(C`ExecStartPre\*(C'\fR, \&\f(CW\*(C`ExecStartPost\*(C'\fR, \&\f(CW\*(C`ExecStopPre\*(C'\fR and \&\f(CW\*(C`ExecStopPost\*(C'\fR to finish. If a command does not exit within the configured time, the socket will be considered failed and be shut down again. All commands still running will be terminated forcibly via \&\f(CW\*(C`SIGTERM\*(C'\fR, and after another delay of this time with \f(CW\*(C`SIGKILL\*(C'\fR. (See \&\f(CW\*(C`KillMode\*(C'\fR in \&\fBsystemd.kill\fR\|(5).) Takes a unit-less value in seconds, or a time span value such as \*(L"5min 20s\*(R". Pass \f(CW0\fR to disable the timeout logic. Defaults to \&\f(CW\*(C`DefaultTimeoutStartSec\*(C'\fR from the manager configuration file (see \&\fBsystemd\-system.conf\fR\|(5)). \&\fI Optional. Type uniline. \fR .SS "Service" .IX Subsection "Service" Specifies the service unit name to activate on incoming traffic. This setting is only allowed for sockets with \f(CW\*(C`Accept=no\*(C'\fR. It defaults to the service that bears the same name as the socket (with the suffix replaced). In most cases, it should not be necessary to use this option. Note that setting this parameter might result in additional dependencies to be added to the unit (see above). \fI Optional. Type uniline. \fR .SS "RemoveOnStop" .IX Subsection "RemoveOnStop" Takes a boolean argument. If enabled, any file nodes created by this socket unit are removed when it is stopped. This applies to \f(CW\*(C`AF_UNIX\*(C'\fR sockets in the file system, \&\s-1POSIX\s0 message queues, FIFOs, as well as any symlinks to them configured with \&\f(CW\*(C`Symlinks\*(C'\fR. Normally, it should not be necessary to use this option, and is not recommended as services might continue to run after the socket unit has been terminated and it should still be possible to communicate with them via their file system node. Defaults to off. \fI Optional. Type boolean. \fR .SS "Symlinks" .IX Subsection "Symlinks" Takes a list of file system paths. The specified paths will be created as symlinks to the \&\f(CW\*(C`AF_UNIX\*(C'\fR socket path or \s-1FIFO\s0 path of this socket unit. If this setting is used, only one \&\f(CW\*(C`AF_UNIX\*(C'\fR socket in the file system or one \s-1FIFO\s0 may be configured for the socket unit. Use this option to manage one or more symlinked alias names for a socket, binding their lifecycle together. Note that if creation of a symlink fails this is not considered fatal for the socket unit, and the socket unit may still start. If an empty string is assigned, the list of paths is reset. Defaults to an empty list. \fI Optional. Type uniline. \fR .SS "FileDescriptorName" .IX Subsection "FileDescriptorName" Assigns a name to all file descriptors this socket unit encapsulates. This is useful to help activated services identify specific file descriptors, if multiple fds are passed. Services may use the \&\fBsd_listen_fds_with_names\fR\|(3) call to acquire the names configured for the received file descriptors. Names may contain any \s-1ASCII\s0 character, but must exclude control characters and \f(CW\*(C`:\*(C'\fR, and must be at most 255 characters in length. If this setting is not used, the file descriptor name defaults to the name of the socket unit, including its \f(CW\*(C`.socket\*(C'\fR suffix. \fI Optional. Type uniline. \fR .SS "TriggerLimitIntervalSec" .IX Subsection "TriggerLimitIntervalSec" Configures a limit on how often this socket unit my be activated within a specific time interval. The \f(CW\*(C`TriggerLimitIntervalSec\*(C'\fR may be used to configure the length of the time interval in the usual time units \f(CW\*(C`us\*(C'\fR, \f(CW\*(C`ms\*(C'\fR, \f(CW\*(C`s\*(C'\fR, \&\f(CW\*(C`min\*(C'\fR, \f(CW\*(C`h\*(C'\fR, X and defaults to 2s (See \&\fBsystemd.time\fR\|(7) for details on the various time units understood). The \f(CW\*(C`TriggerLimitBurst\*(C'\fR setting takes a positive integer value and specifies the number of permitted activations per time interval, and defaults to 200 for \&\f(CW\*(C`Accept=yes\*(C'\fR sockets (thus by default permitting 200 activations per 2s), and 20 otherwise (20 activations per 2s). Set either to 0 to disable any form of trigger rate limiting. If the limit is hit, the socket unit is placed into a failure mode, and will not be connectible anymore until restarted. Note that this limit is enforced before the service activation is enqueued. \fI Optional. Type uniline. \fR .SS "TriggerLimitBurst" .IX Subsection "TriggerLimitBurst" Configures a limit on how often this socket unit my be activated within a specific time interval. The \f(CW\*(C`TriggerLimitIntervalSec\*(C'\fR may be used to configure the length of the time interval in the usual time units \f(CW\*(C`us\*(C'\fR, \f(CW\*(C`ms\*(C'\fR, \f(CW\*(C`s\*(C'\fR, \&\f(CW\*(C`min\*(C'\fR, \f(CW\*(C`h\*(C'\fR, X and defaults to 2s (See \&\fBsystemd.time\fR\|(7) for details on the various time units understood). The \f(CW\*(C`TriggerLimitBurst\*(C'\fR setting takes a positive integer value and specifies the number of permitted activations per time interval, and defaults to 200 for \&\f(CW\*(C`Accept=yes\*(C'\fR sockets (thus by default permitting 200 activations per 2s), and 20 otherwise (20 activations per 2s). Set either to 0 to disable any form of trigger rate limiting. If the limit is hit, the socket unit is placed into a failure mode, and will not be connectible anymore until restarted. Note that this limit is enforced before the service activation is enqueued. \fI Optional. Type uniline. \fR .SH "SEE ALSO" .IX Header "SEE ALSO" .IP "\(bu" 4 cme .SH "COPYRIGHT" .IX Header "COPYRIGHT" .IP "2010\-2016 Lennart Poettering and others" 4 .IX Item "2010-2016 Lennart Poettering and others" .PD 0 .IP "2016 Dominique Dumont" 4 .IX Item "2016 Dominique Dumont" .PD .SH "LICENSE" .IX Header "LICENSE" .IP "LGPLv2.1+" 4 .IX Item "LGPLv2.1+"