On Mon, Sep 02, 2024 at 04:59:46AM GMT, Marc F. Clemente wrote:
> 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

TTBOMK this is mostly useless, but I will add
After=network-online.target instead.

> Additionally, I would suggest changing from Type=forking to Type=simple.
> Use option --foreground instead of --listen.

Unsure. Type=forking has the nicety of systemd knowing that tftpd
started and should be ready.

> And maybe even:
> Restart=on-failure

I've had other bug discussions this year that vehemently argued
against this. If you want it, put it into your drop in file.
BTW, you shouldn't copy the service file to /etc but use drop ins -
IIRC systemctl edit helps you getting that set up.

Chris

Reply via email to