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

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

To start app in graphics session

Control app is started before UI app to avoid inconsistencies

vending-machine-control-application: Move service in package directory
vending-machine-control-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 bde9a833
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 Control Application
Requires=weston@root.service
After=weston@root.service
[Service]
Environment="WAYLAND_DISPLAY=wayland-0"
Environment="XDG_RUNTIME_DIR=/run/user/0"
ExecStart=/usr/bin/vending-machine-control-application
Restart=always
[Install]
WantedBy=multi-user.target
...@@ -10,14 +10,21 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=ba963850f6731c74878fe839d227e675" ...@@ -10,14 +10,21 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=ba963850f6731c74878fe839d227e675"
SRC_URI = "git://git.ostc-eu.org/distro/components/${BPN};protocol=https;branch=main;" SRC_URI = "git://git.ostc-eu.org/distro/components/${BPN};protocol=https;branch=main;"
SRCREV = "e21c34cdd9b554978a80699f44fe35077b0dbb90" SRCREV = "e21c34cdd9b554978a80699f44fe35077b0dbb90"
SRC_URI += "file://${BPN}.service"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
DEPENDS="json-c libwebsockets" DEPENDS="json-c libwebsockets"
inherit pkgconfig features_check inherit pkgconfig features_check systemd
SYSTEMD_SERVICE_${PN} = "${BPN}.service"
REQUIRED_DISTRO_FEATURES = "systemd"
EXTRA_OEMAKE += "DESTDIR=${D}" EXTRA_OEMAKE += "DESTDIR=${D}"
do_install() { do_install() {
oe_runmake 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