Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 492698 - net-ftp/atftp should install a systemd unit
Summary: net-ftp/atftp should install a systemd unit
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tobias Klausmann (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: install-systemd-unit
  Show dependency tree
 
Reported: 2013-11-27 13:32 UTC by Christian Strahl
Modified: 2013-12-09 12:19 UTC (History)
1 user (show)

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


Attachments
atftpd.service (atftpd.service,244 bytes, text/plain)
2013-11-27 13:33 UTC, Christian Strahl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Strahl 2013-11-27 13:32:04 UTC
systemd is not able to start the atftp daemon

> systemctl start atftpd
Failed to issue method call: Unit atftpd.service failed to load: No such file or directory.

Reproducible: Always
Comment 1 Christian Strahl 2013-11-27 13:33:29 UTC
Created attachment 364068 [details]
atftpd.service

Placing this file in /etc/systemd/system/ works for me
Comment 2 Pacho Ramos gentoo-dev 2013-12-01 22:10:20 UTC
+*atftp-0.7-r3 (01 Dec 2013)
+
+  01 Dec 2013; Pacho Ramos <pacho@gentoo.org> +atftp-0.7-r3.ebuild,
+  +files/atftp.service, +files/atftp.service.conf:
+  Add unit file, bug #492698 by Christian Strahl
+
Comment 3 Christian Strahl 2013-12-09 11:33:36 UTC
(In reply to Pacho Ramos from comment #2)
> +*atftp-0.7-r3 (01 Dec 2013)


Why has added another configuration file?
Now you have two files in which you can make the same settings, but only one is applied.
My unit file uses the same configuration file as before.
In addition, the new file does not consider all options.

$ cat /etc/conf.d/atftp
# Config file for tftp server

TFTPD_ROOT="/images/tftpboot"
TFTPD_OPTS="--daemon --user nobody --group nobody"

$ cat /etc/systemd/system/atftp.service.d/00gentoo.conf
[Service]
Environment="TFTPD_ROOT=/tftproot"