summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/wayland/weston/systemd-notify.weston-start
diff options
context:
space:
mode:
authorPavel Zhukov <pavel.zhukov@huawei.com>2021-10-06 13:19:13 +0200
committerSteve Sakoman <steve@sakoman.com>2021-10-19 04:04:49 -1000
commit4efdcc10906945765aa28324ce1badc59cda2976 (patch)
treeb6121f82ea662d6df1930a6a9a3ab47553863233 /meta/recipes-graphics/wayland/weston/systemd-notify.weston-start
parentd4ec2802306b901d00bc88ea1452c21c00d0914f (diff)
downloadopenembedded-core-contrib-4efdcc10906945765aa28324ce1badc59cda2976.tar.gz
weston: Use systemd notify,
Using systemd notify fixes the problem with dependency chain in case if other services depend on running weston. This change required more robust handling of weston modules arguments due to custom argument parser impmentation in weston (only last --modules argument is accepted) and fixes the bug in modules handling in the weston-start script (only last argument is actually parsed by weston). Master branch implements systemd-notify thus backport but doesn't utilize modules anymore so this change is mostly dunfell specific. Upstream-status: Backport Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com> Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-graphics/wayland/weston/systemd-notify.weston-start')
-rw-r--r--meta/recipes-graphics/wayland/weston/systemd-notify.weston-start9
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/recipes-graphics/wayland/weston/systemd-notify.weston-start b/meta/recipes-graphics/wayland/weston/systemd-notify.weston-start
new file mode 100644
index 0000000000..fdb48cb609
--- /dev/null
+++ b/meta/recipes-graphics/wayland/weston/systemd-notify.weston-start
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+# SPDX-FileCopyrightText: Huawei Inc.
+# SPDX-License-Identifier: Apache-2.0
+
+
+if [[ -x "/usr/lib/weston/systemd-notify.so" ]]; then
+ add_weston_module "systemd-notify.so"
+fi