mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-26 20:10:54 +00:00
cronie 1.4.8: add native systemd support
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
parent
dd7c7f1104
commit
82a577eb92
10
meta-oe/recipes-extended/cronie/cronie/crond.service
Normal file
10
meta-oe/recipes-extended/cronie/cronie/crond.service
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Periodic Command Scheduler
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/sbin/crond -n
|
||||||
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
|
Restart=always
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
21
meta-oe/recipes-extended/cronie/cronie_1.4.8.bbappend
Normal file
21
meta-oe/recipes-extended/cronie/cronie_1.4.8.bbappend
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# look for files in the layer first
|
||||||
|
FILESEXTRAPATHS := "${THISDIR}/${PN}"
|
||||||
|
|
||||||
|
PRINC = "1"
|
||||||
|
|
||||||
|
inherit systemd
|
||||||
|
|
||||||
|
SYSTEMD_PACKAGES = "${PN}-systemd"
|
||||||
|
SYSTEMD_SERVICE_${PN}-systemd = "crond.service"
|
||||||
|
|
||||||
|
SRC_URI += "file://crond.service"
|
||||||
|
|
||||||
|
do_install_append() {
|
||||||
|
install -d ${D}${base_libdir}/systemd/system
|
||||||
|
install -m 644 ${WORKDIR}/crond.service ${D}${base_libdir}/systemd/system
|
||||||
|
}
|
||||||
|
|
||||||
|
PACKAGES =+ "${PN}-systemd"
|
||||||
|
|
||||||
|
FILES_${PN}-systemd += "${base_libdir}/systemd"
|
||||||
|
RDEPENDS_${PN}-systemd = "${PN}"
|
||||||
Loading…
x
Reference in New Issue
Block a user