| 1 | [Unit] |
| 2 | Description=F*EX file exchange TCP listener |
| 3 | # don't run over xinetd fex listener socket |
| 4 | ConditionPathExists=!/etc/xinetd.d/fex |
| 5 | ConditionPathExists=!/usr/share/fex/.inetd_has_fex |
| 6 | |
| 7 | [Socket] |
| 8 | # let's be clean and open one listener per address family |
| 9 | BindIPv6Only=ipv6-only |
| 10 | # listen for a stream (tcp) on port 8888 both on ipv4 and ipv6 |
| 11 | ListenStream=0.0.0.0:8888 |
| 12 | ListenStream=[::]:8888 |
| 13 | # spawn a new instance for each incoming connection |
| 14 | Accept=yes |
| 15 | |
| 16 | TimeoutSec=0 |
| 17 | # Defaults. Tweak if you like... |
| 18 | # MaxConnections=64 |
| 19 | # MaxConnectionsPerSource=0 |
| 20 | # NoDelay=false |
| 21 | # ReceiveBuffer= |
| 22 | # SendBuffer= |
| 23 | |
| 24 | |
| 25 | [Install] |
| 26 | WantedBy=sockets.target |
| 27 | # the unit is disabled by default, but can be enabled with systemctl enable fex.socket |
| 28 |