Package: tftpd-hpa
Version: 5.2+20240610-1
tftpd fails to start on bootup. I use ifupdown to start the network
interfaces. Problem is that systemd starts tftpd before the network is
up, so this is what I get:
~# journalctl -b | grep tftp
Sep 01 17:52:25 router3 systemd[1]: Starting tftpd-hpa.service -
tftpd-hpa TFTP Server...
Sep 01 17:52:25 router3 systemd[1]: tftpd-hpa.service: Control process
exited, code=exited, status=71/OSERR
Sep 01 17:52:25 router3 systemd[1]: tftpd-hpa.service: Failed with
result 'exit-code'.
Sep 01 17:52:25 router3 systemd[1]: Failed to start tftpd-hpa.service -
tftpd-hpa TFTP Server.
I do bind to a specific address:
TFTP_ADDRESS="192.168.17.1:69"
Anyway... May I suggest adding one line to the tftpd-hpa.service file.
Otherwise, it's easy enough for me to copy tftpd-hpa.service to
/etc/systemd/system and modify it myself. This is also somewhat related
to bug 854077.
[Unit]
After=network.target
Additionally, I would suggest changing from Type=forking to Type=simple.
Use option --foreground instead of --listen.
And maybe even:
Restart=on-failure
Thanks,
Marc