Re: f26 systemd :: how to run tftp.service and disable tftp.socket

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/21/2018 07:03 AM, Samuel Sieb wrote:
On 01/20/2018 07:40 AM, Adrian Sevcenco wrote:
On 01/19/2018 03:00 PM, James Hogarth wrote:
Seeing as this is a very unusual request, even to the point prior to
systemd tftpd was run under xinetd rather than its own service, I
think the first question is why?
i don't want (need) a supplementary service (xinetd) to activate and run
and i dont want the tftpd service to be activated automatically

It doesn't use xinetd any more.  It uses systemd which is already running anyway.

What problem are you attempting to solve that you think this is the solution?

There's good reason for it being a socket based service, even prior to
could you please explain me what is the reason? (beside being automatically started when an access is requested on 69?)

Most people don't want the tftp server process to be always running.  So it's nice that systemd will answer the socket connect and start the server only when it is needed.
well, from the access point of view there is no difference ..
i don't want to have the tftpd accessible all the time (it has the create mode to save various devices configs)

systemd, so it would be useful understanding what you are trying to
accomplish as an end goal.
see above ... given that the ExecStart line is running as intended, if i cannot solve this dependency problem i will just do a personaly mytftp.service and be done with it...

The easiest way to do what you want is to copy /usr/lib/systemd/system/tftp.service to /etc/systemd and edit it to remove the socket dependency and add the -l option to the server command.
yes and no :)
the proper procedure would be "systemctl edit service_name" that would
create in /etc/systemd/system (for the system services as opposed to user services) directories like <name>.service.d (or <name>.socket.d)
where files with overriding statement can be put.

as such i have this :
cat tftp.service.d/override.conf
[Unit]
DefaultDependencies=no
Requires=

[Service]
ExecStart=
ExecStart=/usr/sbin/in.tftpd -4 -c -L -s /home.hdd/tftpd

[Install]
Also=

in which i tried to remove the socket dependency but but i still have this :
systemctl list-dependencies tftp.service
tftp.service
● ├─system.slice
● └─tftp.socket

so, i had to create mytftp.service with the content as above that works as expected, and i have the freedom to start and stop whenever i chose to..

Thank you!
Adrian

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux