Skip to content
Snippets Groups Projects
Commit 61a0ac38 authored by philippe coval's avatar philippe coval :speech_balloon: Committed by Andrei Gherzan
Browse files

blueprint-vending-machine-ui-application: Add systemd service

To start app in graphics session after control app.

Control app is started before UI app to avoid inconsistencies

vending-machine-ui-application: Move service in package directory
vending-machine-ui-application: Fix systemd integration

Relate-to: https://git.ostc-eu.org/OSTC/planning/core-os/-/issues/233
Forwarded: https://git.ostc-eu.org/distro/oniro/-/merge_requests/357


Thanks-to: Andrei Gherzan <andrei.gherzan@huawei.com>
Signed-off-by: default avatarPhilippe Coval <philippe.coval@huawei.com>
parent b11c2a38
No related branches found
No related tags found
No related merge requests found
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
[Unit]
Description=Vending Machine UI Application
Requires=weston@root.service
After=weston@root.service
After=vending-machine-control-application.service
[Service]
Environment="WAYLAND_DISPLAY=wayland-0"
Environment="XDG_RUNTIME_DIR=/run/user/0"
ExecStart=/usr/bin/vending-machine-ui-application
Restart=always
[Install]
WantedBy=multi-user.target
......@@ -10,17 +10,22 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=ba963850f6731c74878fe839d227e675"
SRC_URI = "git://git.ostc-eu.org/distro/components/${BPN};protocol=https;branch=main;"
SRCREV = "f9b9a709a299782f6f3accc7af8c743057294f95"
SRC_URI += "file://${BPN}.service"
S = "${WORKDIR}/git"
DEPENDS= "json-c libwebsockets lv-drivers lv-lib-png lvgl"
inherit pkgconfig features_check
inherit pkgconfig features_check systemd
REQUIRED_DISTRO_FEATURES = "wayland"
SYSTEMD_SERVICE_${PN} = "${BPN}.service"
REQUIRED_DISTRO_FEATURES = "systemd wayland"
EXTRA_OEMAKE += "DESTDIR=${D}"
EXTRA_OEMAKE += "sysroot=${RECIPE_SYSROOT}"
do_install() {
oe_runmake install
install -d "${D}${systemd_system_unitdir}/"
install -m 0644 "${WORKDIR}/${BPN}.service" "${D}${systemd_system_unitdir}/"
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment