mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-07 05:10:20 +00:00
cronie 1.4.8: add native systemd support
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
@@ -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
|
||||
@@ -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}"
|
||||
Reference in New Issue
Block a user