aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/tftp-hpa/files
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2017-08-23 17:14:53 +0800
committerMartin Jansa <Martin.Jansa@gmail.com>2017-08-31 14:59:52 +0200
commit87377c81cf163ac2bc3940b2d0b130e0c9ebc56a (patch)
tree7f4bee4e6323a58c6df1a43f0d13e554ec71b785 /meta-networking/recipes-daemons/tftp-hpa/files
parent1b793a9abc6f0b884b63dbdd545acdd002b98ae6 (diff)
downloadmeta-openembedded-contrib-87377c81cf163ac2bc3940b2d0b130e0c9ebc56a.tar.gz
tftp-hpa: add systemd unit files
Add systemd unit files for tftp-hpa. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-networking/recipes-daemons/tftp-hpa/files')
-rw-r--r--meta-networking/recipes-daemons/tftp-hpa/files/tftpd-hpa.service10
-rw-r--r--meta-networking/recipes-daemons/tftp-hpa/files/tftpd-hpa.socket8
2 files changed, 18 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/tftp-hpa/files/tftpd-hpa.service b/meta-networking/recipes-daemons/tftp-hpa/files/tftpd-hpa.service
new file mode 100644
index 0000000000..97d56586be
--- /dev/null
+++ b/meta-networking/recipes-daemons/tftp-hpa/files/tftpd-hpa.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Tftp Server
+Requires=tftpd-hpa.socket
+
+[Service]
+ExecStart=@SBINDIR@/in.tftpd-hpa -s /var/lib/tftpboot
+StandardInput=socket
+
+[Install]
+Also=tftpd-hpa.socket
diff --git a/meta-networking/recipes-daemons/tftp-hpa/files/tftpd-hpa.socket b/meta-networking/recipes-daemons/tftp-hpa/files/tftpd-hpa.socket
new file mode 100644
index 0000000000..8764c1de34
--- /dev/null
+++ b/meta-networking/recipes-daemons/tftp-hpa/files/tftpd-hpa.socket
@@ -0,0 +1,8 @@
+[Unit]
+Description=Tftp Server Activation Socket
+
+[Socket]
+ListenDatagram=69
+
+[Install]
+WantedBy=sockets.target