summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended
diff options
context:
space:
mode:
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}"