You are not logged in.

#1 2012-10-07 00:22:55

nomorewindows
Member
Registered: 2010-04-03
Posts: 2,976

Systemd/tftpd/kernel 3.5.5 [solved]

Restarted to update 3.5.5 kernel and systemd refuses to start tftpd.service.
Starting hpa's original TFTP daemon...
tftpd.service failed to run 'start' task: Invalid argument
Failed to start hpa's original TFTP daemon.

Starting it manually with /etc/rc.d/tftpd start works.

Last edited by nomorewindows (2012-10-17 21:45:01)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#2 2012-10-07 03:22:20

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: Systemd/tftpd/kernel 3.5.5 [solved]

What does the service file look like?

Like this?

[Unit]
Description=hpa's original TFTP daemon

[Service]
ExecStart=/usr/sbin/in.tftpd -s /srv/tftp/
StandardInput=socket
StandardOutput=inherit
StandardError=journal

Last edited by WonderWoofy (2012-10-07 03:22:58)

Offline

#3 2012-10-07 13:36:23

nomorewindows
Member
Registered: 2010-04-03
Posts: 2,976

Re: Systemd/tftpd/kernel 3.5.5 [solved]

WonderWoofy wrote:

What does the service file look like?

Like this?

[Unit]
Description=hpa's original TFTP daemon

[Service]
ExecStart=/usr/sbin/in.tftpd -s /srv/tftp/
StandardInput=socket
StandardOutput=inherit
StandardError=journal

It looks like that, I haven't changed anything except upgrading the kernel.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#4 2012-10-17 19:04:01

jordz
Member
Registered: 2006-02-01
Posts: 246

Re: Systemd/tftpd/kernel 3.5.5 [solved]

Found a fix for it?

Edit:
This systemd unit file works: https://bugs.archlinux.org/task/31148

Last edited by jordz (2012-10-17 19:07:23)

Offline

#5 2012-10-17 21:42:41

nomorewindows
Member
Registered: 2010-04-03
Posts: 2,976

Re: Systemd/tftpd/kernel 3.5.5 [solved]

jordz wrote:

Found a fix for it?

Edit:
This systemd unit file works: https://bugs.archlinux.org/task/31148

The second file seems to have worked (posted by falconindy, contents pasted here for /usr/lib/systemd/system/tftpd.service):

[Unit]
Description=Tftp Server
After=network.target

[Service]
Type=forking
EnvironmentFile=/etc/conf.d/tftpd
ExecStart=/usr/sbin/in.tftpd $TFTPD_ARGS
ExecStop=/bin/kill -15 $MAINPID

[Install]
WantedBy=multi-user.target

Last edited by nomorewindows (2012-10-17 21:43:39)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#6 2012-11-22 13:36:18

khampf
Member
Registered: 2012-08-08
Posts: 8

Re: Systemd/tftpd/kernel 3.5.5 [solved]

Had a hard time with the service today but found out that what I wanted was to enable the socket, not the service. As per https://wiki.archlinux.org/index.php/Ne … Guide#TFTP

# systemctl enable tftpd.socket
# systemctl start tftpd.socket

Offline

#7 2012-11-22 16:23:22

nomorewindows
Member
Registered: 2010-04-03
Posts: 2,976

Re: Systemd/tftpd/kernel 3.5.5 [solved]

khampf wrote:

Had a hard time with the service today but found out that what I wanted was to enable the socket, not the service. As per https://wiki.archlinux.org/index.php/Ne … Guide#TFTP

# systemctl enable tftpd.socket
# systemctl start tftpd.socket

If the service starts, it should also start the associated socket with it.
My tftpd works with the file I have posted above.
With a new install, my tftpd.service looks like this:

[Unit]
Description=hpa's original TFTP daemon

[Service]
ExecStart=/usr/sbin/in.tftpd -s /srv/tftp/
StandardInput=socket
StandardOutput=inherit
StandardError=journal

My tftpd.socket looks like this:

[Socket]
ListenDatagram=69

[Install]
WantedBy=sockets.target

I didn't even touch the tftpd.socket file, and either it was updated, or what have you, but it looks unchanged.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

Board footer

Powered by FluxBB