cronie 1.4.8: add native systemd support

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
Koen Kooi
2011-11-08 20:36:50 +01:00
parent dd7c7f1104
commit 82a577eb92
2 changed files with 31 additions and 0 deletions
@@ -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}"