Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 482712 - net-ftp/tftp-hpa - add systemd unit files
Summary: net-ftp/tftp-hpa - add systemd unit files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks: install-systemd-unit
  Show dependency tree
 
Reported: 2013-08-27 20:32 UTC by Stefan G. Weichinger
Modified: 2013-09-14 13:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan G. Weichinger 2013-08-27 20:32:23 UTC
net-ftp/tftp-hpa does not provide service-files for systemd.

A working suggestion (not yet reading a conf.d file, so you have to edit your tftp-dir into the service-file):

# tftpd.service 
[Unit]
Description=hpa's original TFTP daemon

[Service]
EnvironmentFile=/etc/conf.d/in.tftpd
ExecStart=/usr/sbin/in.tftpd -R 4096:32767 -s /mnt/nfsexports/pxe/
StandardInput=socket
StandardOutput=inherit
StandardError=journal

# tftpd.socket 
[Socket]
ListenDatagram=69

[Install]
WantedBy=sockets.target
Comment 1 Pacho Ramos gentoo-dev 2013-08-28 08:01:07 UTC
(In reply to Stefan G. Weichinger from comment #0)
> net-ftp/tftp-hpa does not provide service-files for systemd.
> 
> A working suggestion (not yet reading a conf.d file, so you have to edit
> your tftp-dir into the service-file):
> 

Is it completely needed? Please look at:
https://wiki.gentoo.org/wiki/Systemd/Ebuild_policy

about how to proceed with conf files.
Comment 2 Stefan G. Weichinger 2013-08-28 08:25:18 UTC
(In reply to Pacho Ramos from comment #1)
> (In reply to Stefan G. Weichinger from comment #0)
> > net-ftp/tftp-hpa does not provide service-files for systemd.
> > 
> > A working suggestion (not yet reading a conf.d file, so you have to edit
> > your tftp-dir into the service-file):
> > 
> 
> Is it completely needed? Please look at:
> https://wiki.gentoo.org/wiki/Systemd/Ebuild_policy
> 
> about how to proceed with conf files.

Yes, noticed your posting on planet gentoo ...

So you suggest a subdir /etc/systemd/system/in.tftpd etc. ... right?
I will see if I understand correctly and come back here ...
Comment 3 Pacho Ramos gentoo-dev 2013-08-28 08:41:44 UTC
From what I read in current conf.d file looks like we would need a config for setting INTFTPD_PATH as that will change depending on each setup, right?

I would then provide the gentoo.conf with that option, but wouldn't that for the other INTFTPD_OPTS as they look to be sane defaults that shouldn't be changed (but I haven't used this package and, then, I am not completely sure if we need to make this configurable too)
Comment 4 Stefan G. Weichinger 2013-08-28 08:44:50 UTC
(In reply to Pacho Ramos from comment #3)
> From what I read in current conf.d file looks like we would need a config
> for setting INTFTPD_PATH as that will change depending on each setup, right?

Yes, correct.

> I would then provide the gentoo.conf with that option, but wouldn't that for
> the other INTFTPD_OPTS as they look to be sane defaults that shouldn't be
> changed (but I haven't used this package and, then, I am not completely sure
> if we need to make this configurable too)

I assume it isn't really necessary.
Comment 5 Pacho Ramos gentoo-dev 2013-09-14 13:14:23 UTC
+*tftp-hpa-5.2-r1 (14 Sep 2013)
+
+  14 Sep 2013; Pacho Ramos <pacho@gentoo.org> +files/tftp.service,
+  +files/tftp.socket, +tftp-hpa-5.2-r1.ebuild:
+  Install unit file (#482712)
+

I have seen we are the only distribution that allows people to play with the directory. Other make apps use the same directory (that looks more reasonable) (checked in Arch and Fedora). For our case, I have chosen the directory used by the only consumer in the tree at the moment