Bug 1323822

Summary: tftp-server doesn't have the configuration file
Product: [Fedora] Fedora Reporter: Sally <sallyahaj>
Component: tftpAssignee: Jan Synacek <jsynacek>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 23CC: jsynacek
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-05 06:00:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
This is "tftp.spec" file after editing it, to add tftp configuration file none

Description Sally 2016-04-04 20:13:47 UTC
Created attachment 1143443 [details]
This is "tftp.spec" file after editing it, to add tftp configuration file

Hello All.

When I was trying to configure setting up a TFTP and DHCP server and I installed tftp-server, Then I found that the configuration file of tftp not available in the path
/etc/xinetd.d/
Which should to be in as
/etc/xinetd.d/tftp

I tried it with centos7, and the configuration file is there, so I had a look at spec files in centos7 and fedora 23, and there were differences in some lines, which were missing in fedora 23 spec files:



install -m755 -d -p ${RPM_BUILD_ROOT}%{_sysconfdir}/xinetd.d/ ${RPM_BUILD_ROOT}%{_localstatedir}/lib/tftpboot
sed -e 's:/var:%{_localstatedir}:' -e 's:/usr/sbin:%{_sbindir}:' \
 tftp-xinetd > ${RPM_BUILD_ROOT}%{_sysconfdir}/xinetd.d/tftp
touch -r tftp-xinetd ${RPM_BUILD_ROOT}%{_sysconfdir}/xinetd.d/tftp

%config(noreplace) %{_sysconfdir}/xinetd.d/tftp

The packages: "tftp-server" needs to rebuild with the the new lines.

Comment 1 Jan Synacek 2016-04-05 06:00:56 UTC
This change was made on purpose. Using systemd unit files has been the preferred solution for a while. xinetd is obsolete.

See /usr/lib/systemd/system/tftp.{service,socket}.

For the commit that removed the xinetd service file, see http://pkgs.fedoraproject.org/cgit/rpms/tftp.git/commit/?h=f23&id=629a32ec28ebcb88fa7330ad4bffcad5d70c2b80.