Files
poky/meta/recipes-graphics/wayland/weston-init/init
Alexander Kanavin b3bb369ba4 weston: upgrade 9.0.0 -> 10.0.0
Release announcement with changes:
https://lists.freedesktop.org/archives/wayland-devel/2022-February/042103.html

Upstream has deprecated both weston-launch and fbdev backend, so let's
not delay the inevitable and find replacements.

Fbdev can be replaced by passing --use-pixman to drm backend;
this will bypass the opengl paths and use CPU for rendering.
Apply where GL is too slow or unavailable.

weston-launch can be replaced by starting weston directly, with
a seat management daemon for support. This is provided either
by systemd, or on systemd-less systems, by seatd. The sysvinit
startup scripts and tests have been rewritten accordingly. Bonus
fix: under sysvinit weston now starts under weston user as it should,
and not under root.

Upstream discussion:
https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/725

License-Update: copyright years

(From OE-Core rev: 4efc81fc575aea1e12e00de8644a4b853719f8df)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-05 17:46:05 +00:00

850 B

#!/bin/sh

BEGIN INIT INFO

Provides: weston

Required-Start: $local_fs $remote_fs

Required-Stop: $local_fs $remote_fs

Default-Start: 2 3 4 5

Default-Stop: 0 1 6

END INIT INFO

if test -e /etc/default/weston ; then . /etc/default/weston fi

killproc() { pid=/bin/pidof $1 [ "$pid" != "" ] && kill $pid }

read CMDLINE < /proc/cmdline for x in $CMDLINE; do case $x in weston=false) echo "Weston disabled" exit 0; ;; esac done

case "$1" in start) . /etc/profile export HOME=ROOTHOME

    WESTON_USER=weston weston-start $OPTARGS &

;;

stop) echo "Stopping Weston" killproc weston ;;

restart) $0 stop sleep 1 $0 start ;;

*) echo "usage: $0 { start | stop | restart }" ;; esac

exit 0