weston-init: Add environment file support for systemd unit file

The /etc/default/weston file is already installed and it can be used
as systemd EnvironmentFile.

(From OE-Core rev: a1390bd294a0f21297ace3f7b4e33912fa9cb63b)

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Fabio Berton
2020-09-30 18:16:44 -03:00
committed by Richard Purdie
parent cddb58b0c6
commit 2de508e3cb

View File

@@ -29,6 +29,7 @@ ConditionPathExists=/dev/tty0
[Service]
# Requires systemd-notify.so Weston plugin.
Type=notify
EnvironmentFile=/etc/default/weston
ExecStart=/usr/bin/weston --modules=systemd-notify.so
# Optional watchdog setup