You are not logged in.
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
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
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
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
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
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
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