[meta-systemd,02/13] meta-systemd: Add systemd unit file for atftp

Submitted by Khem Raj on Jan. 4, 2013, 3:59 a.m.

Details

Message ID 1357271974-3317-2-git-send-email-raj.khem@gmail.com
State Accepted, archived
Headers show

Commit Message

Khem Raj Jan. 4, 2013, 3:59 a.m.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../recipes-extended/atftp/atftp/atftpd.service    |   10 ++++++++++
 .../recipes-extended/atftp/atftp_git.bbappend      |   10 ++++++++++
 2 files changed, 20 insertions(+)
 create mode 100644 meta-systemd/meta-junos/recipes-extended/atftp/atftp/atftpd.service
 create mode 100644 meta-systemd/meta-junos/recipes-extended/atftp/atftp_git.bbappend

Patch hide | download patch | download mbox

diff --git a/meta-systemd/meta-junos/recipes-extended/atftp/atftp/atftpd.service b/meta-systemd/meta-junos/recipes-extended/atftp/atftp/atftpd.service
new file mode 100644
index 0000000..480bc70
--- /dev/null
+++ b/meta-systemd/meta-junos/recipes-extended/atftp/atftp/atftpd.service
@@ -0,0 +1,10 @@ 
+[Unit]
+Description=Advanced TFTP Server
+After=syslog.target network.target
+
+[Service]
+Type=forking
+ExecStart=/usr/sbin/atftpd --daemon --port 69
+
+[Install]
+WantedBy=multi-user.target
diff --git a/meta-systemd/meta-junos/recipes-extended/atftp/atftp_git.bbappend b/meta-systemd/meta-junos/recipes-extended/atftp/atftp_git.bbappend
new file mode 100644
index 0000000..3706d9f
--- /dev/null
+++ b/meta-systemd/meta-junos/recipes-extended/atftp/atftp_git.bbappend
@@ -0,0 +1,10 @@ 
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+PRINC := "${@int(PRINC) + 1}"
+
+inherit systemd
+
+SRC_URI += "file://atftpd.service"
+
+SYSTEMD_PACKAGES = "atftpd-systemd"
+SYSTEMD_SERVICE_atftpd-systemd = "atftpd.service"