diff options
Diffstat (limited to 'meta-oe/recipes-extended')
-rw-r--r-- | meta-oe/recipes-extended/cronie/cronie/crond.service | 10 | ||||
-rw-r--r-- | meta-oe/recipes-extended/cronie/cronie_1.4.8.bbappend | 21 |
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] | ||
2 | Description=Periodic Command Scheduler | ||
3 | |||
4 | [Service] | ||
5 | ExecStart=/usr/sbin/crond -n | ||
6 | ExecReload=/bin/kill -HUP $MAINPID | ||
7 | Restart=always | ||
8 | |||
9 | [Install] | ||
10 | WantedBy=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 | ||
2 | FILESEXTRAPATHS := "${THISDIR}/${PN}" | ||
3 | |||
4 | PRINC = "1" | ||
5 | |||
6 | inherit systemd | ||
7 | |||
8 | SYSTEMD_PACKAGES = "${PN}-systemd" | ||
9 | SYSTEMD_SERVICE_${PN}-systemd = "crond.service" | ||
10 | |||
11 | SRC_URI += "file://crond.service" | ||
12 | |||
13 | do_install_append() { | ||
14 | install -d ${D}${base_libdir}/systemd/system | ||
15 | install -m 644 ${WORKDIR}/crond.service ${D}${base_libdir}/systemd/system | ||
16 | } | ||
17 | |||
18 | PACKAGES =+ "${PN}-systemd" | ||
19 | |||
20 | FILES_${PN}-systemd += "${base_libdir}/systemd" | ||
21 | RDEPENDS_${PN}-systemd = "${PN}" | ||