summaryrefslogtreecommitdiffstats
path: root/meta-selftest/recipes-test/bbclasses/systemd-and-sysvinit.bb
blob: f9fc59a494d37b5d02586c39ba68ea390418233a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
LICENSE = "MIT"

inherit allarch systemd update-rc.d

do_install() {
	install -d ${D}${systemd_system_unitdir}
	touch ${D}${systemd_system_unitdir}/${BPN}.service

	install -d ${D}${INIT_D_DIR}
	touch ${D}${INIT_D_DIR}/${BPN}
}

INITSCRIPT_NAME = "${BPN}"

SYSTEMD_SERVICE:${PN} = "${BPN}.service"

EXCLUDE_FROM_WORLD="1"