[meta-systemd,03/13] at: Add systemd unit file

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

Details

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

Commit Message

Khem Raj Jan. 4, 2013, 3:59 a.m.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../meta-oe/recipes-extended/at/at/atd.service     |    9 +++++++++
 .../meta-oe/recipes-extended/at/at_3.1.13.bbappend |   12 ++++++++++++
 2 files changed, 21 insertions(+)
 create mode 100644 meta-systemd/meta-oe/recipes-extended/at/at/atd.service
 create mode 100644 meta-systemd/meta-oe/recipes-extended/at/at_3.1.13.bbappend

Patch hide | download patch | download mbox

diff --git a/meta-systemd/meta-oe/recipes-extended/at/at/atd.service b/meta-systemd/meta-oe/recipes-extended/at/at/atd.service
new file mode 100644
index 0000000..64a9015
--- /dev/null
+++ b/meta-systemd/meta-oe/recipes-extended/at/at/atd.service
@@ -0,0 +1,9 @@ 
+[Unit]
+Description=Job spooling tools
+After=syslog.target
+
+[Service]
+ExecStart=/usr/sbin/atd -f
+
+[Install]
+WantedBy=multi-user.target
diff --git a/meta-systemd/meta-oe/recipes-extended/at/at_3.1.13.bbappend b/meta-systemd/meta-oe/recipes-extended/at/at_3.1.13.bbappend
new file mode 100644
index 0000000..d80cfff
--- /dev/null
+++ b/meta-systemd/meta-oe/recipes-extended/at/at_3.1.13.bbappend
@@ -0,0 +1,12 @@ 
+inherit systemd
+
+PRINC := "${@int(PRINC) + 1}"
+
+# look for files in the layer first
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+SRC_URI += "file://atd.service"
+
+SYSTEMD_PACKAGES = "${PN}-systemd"
+SYSTEMD_SERVICE = "atd.service"
+