Bug 1323822 - tftp-server doesn't have the configuration file
Summary: tftp-server doesn't have the configuration file
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: tftp
Version: 23
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jan Synacek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-04 20:13 UTC by Sally
Modified: 2016-04-05 06:00 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-05 06:00:56 UTC
Type: Bug


Attachments (Terms of Use)
This is "tftp.spec" file after editing it, to add tftp configuration file (13.73 KB, text/x-matlab)
2016-04-04 20:13 UTC, Sally
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.