Included .socket is ineffective
Task Info (Flyspray) | |
---|---|
Opened By | Mantas Mikulėnas (grawity) |
Task ID | 77104 |
Type | Bug Report |
Project | Arch Linux |
Category | Packages: Extra |
Version | None |
OS | All |
Opened | 2023-01-12 18:27:31 UTC |
Status | Assigned |
Assignee | Anatol Pomozov (anatolik) |
Details
extra/tftp-hpa 5.2-10 includes a systemd .socket file for inetd-style activation, but doesn't include a corresponding .service file that would accept such activation. The only .service that's included is a "standalone daemon" configuration with the --listen option, and is even listed as conflicting with the .socket unit. Trying to use the .socket just makes TFTP requests hang as the daemon isn't configured to accept the inherited socket.
For the .socket file to be useful, a different .service (e.g. tftpd-inetd.service) is needed with these differences:
- No "After=network.target"
- No "Type=forking".
- No "--listen" option for in.tftpd.
- Add the [Service] "StandardInput=socket" option.
- No "WantedBy=".
The .socket unit then should be changed to explicitly request [Socket] "Service=tftpd-inetd.service".