summaryrefslogtreecommitdiff
path: root/src/systemd/tftpd@.service
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-02-24 21:04:35 +0100
committerChristian Poessinger <christian@poessinger.com>2019-02-25 18:22:31 +0100
commit61c1657d3e207071b7c0c5e7c4ef4a466d8f81b4 (patch)
tree7bd88a1ac193b41329c887b859c57a6771d16e70 /src/systemd/tftpd@.service
parente81a1e82f1b3305fca81c79629b8a705ccc79573 (diff)
downloadvyos-1x-61c1657d3e207071b7c0c5e7c4ef4a466d8f81b4.tar.gz
vyos-1x-61c1657d3e207071b7c0c5e7c4ef4a466d8f81b4.zip
[tftp] T1261: bugfix listening on multiple IP addesses
tftp-hpa which is the TFTP daemon used by VyOS does not support listening on multiple IP adresses. With this limitation we will start one TFTP daemon instance per configured listen-address via systemd. (cherry picked from commit 735a24d58ddf55294241ce8160471fe9be062498)
Diffstat (limited to 'src/systemd/tftpd@.service')
-rw-r--r--src/systemd/tftpd@.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/systemd/tftpd@.service b/src/systemd/tftpd@.service
new file mode 100644
index 000000000..e5c289466
--- /dev/null
+++ b/src/systemd/tftpd@.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=TFTP server
+After=network.target
+RequiresMountsFor=/run
+
+[Service]
+Type=forking
+#NotifyAccess=main
+EnvironmentFile=-/etc/default/tftpd%I
+ExecStart=/usr/sbin/in.tftpd "$DAEMON_ARGS"
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target