summaryrefslogtreecommitdiff
path: root/src/systemd
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-02-24 21:04:35 +0100
committerChristian Poessinger <christian@poessinger.com>2019-02-24 21:09:04 +0100
commit735a24d58ddf55294241ce8160471fe9be062498 (patch)
treeb8999f32cf79f60a2374301c579f74a2c7bb89b6 /src/systemd
parentbb874fe0aff6f5a21b489a01d84fa16cfe48c69a (diff)
downloadvyos-1x-735a24d58ddf55294241ce8160471fe9be062498.tar.gz
vyos-1x-735a24d58ddf55294241ce8160471fe9be062498.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.
Diffstat (limited to 'src/systemd')
-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