summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2011-11-08 20:36:50 +0100
committerKoen Kooi <koen@dominion.thruhere.net>2011-11-08 20:36:50 +0100
commit82a577eb926ecf00709dad05ec4c5e0242f5e673 (patch)
tree3a9ea9d0700b0f32199f1689b35ab8098f57d6cf /meta-oe/recipes-extended
parentdd7c7f11049ecc4eb6cf898059d2dca2766c8408 (diff)
downloadmeta-openembedded-82a577eb926ecf00709dad05ec4c5e0242f5e673.tar.gz
cronie 1.4.8: add native systemd support
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe/recipes-extended')
-rw-r--r--meta-oe/recipes-extended/cronie/cronie/crond.service10
-rw-r--r--meta-oe/recipes-extended/cronie/cronie_1.4.8.bbappend21
2 files changed, 31 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/cronie/cronie/crond.service b/meta-oe/recipes-extended/cronie/cronie/crond.service
new file mode 100644
index 000000000..5ae193bfc
--- /dev/null
+++ b/meta-oe/recipes-extended/cronie/cronie/crond.service
@@ -0,0 +1,10 @@
1[Unit]
2Description=Periodic Command Scheduler
3
4[Service]
5ExecStart=/usr/sbin/crond -n
6ExecReload=/bin/kill -HUP $MAINPID
7Restart=always
8
9[Install]
10WantedBy=multi-user.target
diff --git a/meta-oe/recipes-extended/cronie/cronie_1.4.8.bbappend b/meta-oe/recipes-extended/cronie/cronie_1.4.8.bbappend
new file mode 100644
index 000000000..e0b9fb967
--- /dev/null
+++ b/meta-oe/recipes-extended/cronie/cronie_1.4.8.bbappend
@@ -0,0 +1,21 @@
1# look for files in the layer first
2FILESEXTRAPATHS := "${THISDIR}/${PN}"
3
4PRINC = "1"
5
6inherit systemd
7
8SYSTEMD_PACKAGES = "${PN}-systemd"
9SYSTEMD_SERVICE_${PN}-systemd = "crond.service"
10
11SRC_URI += "file://crond.service"
12
13do_install_append() {
14 install -d ${D}${base_libdir}/systemd/system
15 install -m 644 ${WORKDIR}/crond.service ${D}${base_libdir}/systemd/system
16}
17
18PACKAGES =+ "${PN}-systemd"
19
20FILES_${PN}-systemd += "${base_libdir}/systemd"
21RDEPENDS_${PN}-systemd = "${PN}"