tftp as a systemd service generates no log

Issues related to configuring your network
Post Reply
jbailey
Posts: 12
Joined: 2015/10/05 15:12:40

tftp as a systemd service generates no log

Post by jbailey » 2022/01/19 21:29:52

So I'm trying to run TFTP as a systemd service on CentOS 7. I'm using the stock service definition file with a few extra parameters, but I'm not getting any logging data in the systemd journal or in rsyslog:

/etc/systemd/system/tftpd.service

Code: Select all

[Unit]
Description=Tftp Server
Requires=tftpd.socket
Documentation=man:in.tftpd

[Service]
ExecStart=/usr/sbin/in.tftpd -vvvv --port-range 50000:54999 --ipv4 --ipv6 -s /var/lib/tftpboot
StandardInput=socket

[Install]
Also=tftpd.socket
/etc/systemd/system/tftpd.socket

Code: Select all

[Unit]
Description=Tftp Server Activation Socket

[Socket]
ListenDatagram=69

[Install]
WantedBy=sockets.target
I don't care whether the logging data enters up in the systemd journal or in rsyslog, but in this case, I can't seem to get either. When I was running it from xinetd (which I'm trying to get away from for various reasons), it logs to /var/log/tftp.log without issue. I just need to see the log!

Ideas?

Post Reply