diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2011-11-08 20:36:50 +0100 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-11-08 20:36:50 +0100 |
commit | 82a577eb926ecf00709dad05ec4c5e0242f5e673 (patch) | |
tree | 3a9ea9d0700b0f32199f1689b35ab8098f57d6cf | |
parent | dd7c7f11049ecc4eb6cf898059d2dca2766c8408 (diff) | |
download | meta-openembedded-82a577eb926ecf00709dad05ec4c5e0242f5e673.tar.gz |
cronie 1.4.8: add native systemd support
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
-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}" | ||