This commit is in the kirkstone branch:
3f590fa
When running sysvinit the above commit prevents weston from starting.
- /etc/init.d/weston will source /etc/profile (which sources /etc/profile.d/weston.sh)
- /etc/init.d/weston runs weston-start which checks if
WAYLAND_DISPLAY is already set and if so bails out with:
ERROR: A Wayland compositor is already running, nested Weston instance is not supported yet.
PS. my system does not have a /run/wayland-0. The init script runs weston under weston user and the socket is in /run/user/$(id -u weston)/.