General support questions
- Posts: 96
- Joined: 2013/01/31 00:29:05
I'm struggling to understand why the package tftp-server installs a systemd service, tftp.service and tftp.socket, when it's managed through xinetd which is also a service. My understanding is that xinetd listens on the well-known service sockets and then, when something happens on the tftp socket, it starts tftpd. So, why the need for a separate service? Does xinetd start things things through systemd? Is that why? Or is it just in case I'd rather have tftp running all the time and not depend upon a "middle-man?"
My reason for this question
$ rpm -ql tftp-server
- Posts: 1
- Joined: 2014/11/05 17:57:44
Did you ever figure this out or get an answer anywhere? It constantly baffles our folks who think the TFTP server is DEAD, because the status always says:
>systemctl status tftp
* tftp.service - Tftp Server
Loaded: loaded (/usr/lib/systemd/system/tftp.service; indirect; vendor preset: disabled)
Active: inactive (dead) since Wed 2019-09-04 14:19:38 PDT; 1 weeks 2 days ago
Main PID: 374498 (code=exited, status=0/SUCCESS)
Sep 04 14:04:38 pe-ld3 systemd: Started Tftp Server.
Sep 04 14:04:38 pe-ld3 systemd: Starting Tftp Server...
But of course when you request a TFTP transfer then xinetd starts the tftpd server OK:
root 268819 336559 0 16:19 ? 00:00:00 in.tftpd --verbose -s /var/lib/tftpboot
There is also a tftp.socket which is active:
>systemctl status tftp.socket
* tftp.socket - Tftp Server Activation Socket
Loaded: loaded (/usr/lib/systemd/system/tftp.socket; enabled; vendor preset: disabled)
Active: active (listening) since Fri 2019-07-26 16:36:28 PDT; 1 months 18 days ago
Listen: 0.0.0.0:69 (Datagram)
Jul 26 16:36:28 pe-ld3 systemd: Listening on Tftp Server Activation Socket.
Jul 26 16:36:28 pe-ld3 systemd: Starting Tftp Server Activation Socket.
But when the remote system hangs in PXE boot people always blame TFTP because they say that issuing a "systemctl start tftp" then makes the PXE boot work!
- Forum Moderator
- Posts: 26983
- Joined: 2009/09/24 10:40:56
- Location: Brighton, UK
I'm pretty sure you shouldn't be using xinetd for tftp if you have also enabled the tftpd.socket in systemd. They do the same thing (only differently).
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke