osmo-bts: Package the sysmobts.service for systemd support
Use the native systemd service file to avoid running a shell script that is ran from within the screen. This code expects the pcu to have a .service file itself.
This commit is contained in:
parent
921d2e8ec0
commit
fc071607d1
|
@ -7,7 +7,7 @@ SRC_URI = "git://git.osmocom.org/osmo-bts.git;protocol=git;branch=sysmocom/0.3.0
|
|||
SRCREV_osmobts = "b2a8a642d65779918f64437b5cbbde8e206222f2"
|
||||
SRCREV_openbsc = "caa98d51b64e16bbe6d4933d9052b617432e5e22"
|
||||
PV = "0.3.0+git${SRCPV}"
|
||||
PR = "r1.${META_TELEPHONY_OSMO_INC}"
|
||||
PR = "r2.${META_TELEPHONY_OSMO_INC}"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
SRCREV_FORMAT = "openbsc-rosmobts"
|
||||
|
@ -40,6 +40,10 @@ do_install_append() {
|
|||
install -d ${D}${sysconfdir}/init.d
|
||||
install -m 0755 ${S}/contrib/sysmobts.init ${D}${sysconfdir}/init.d/sysmobts
|
||||
|
||||
# Install systemd and enable on sysinit
|
||||
install -d ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
||||
install -m 0644 ${S}/contrib/sysmobts.service ${D}${systemd_unitdir}/system/
|
||||
ln -sf ../sysmobts.service ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
||||
}
|
||||
|
||||
do_install_append_sysmobts-v2() {
|
||||
|
@ -53,6 +57,7 @@ INITSCRIPT_PARAMS_${PN} = "defaults 30 30"
|
|||
|
||||
PACKAGES =+ "osmo-bts-remote sysmobts-calib sysmobts-util"
|
||||
|
||||
FILES_${PN} += "${systemd_unitdir}"
|
||||
FILES_osmo-bts-remote = " ${bindir}/sysmobts-remote "
|
||||
FILES_sysmobts-calib = " ${bindir}/sysmobts-calib "
|
||||
FILES_sysmobts-util = " ${bindir}/sysmobts-util "
|
||||
|
|
Loading…
Reference in New Issue