diff options
| author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2015-12-01 17:35:56 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-12-12 23:42:52 +0000 |
| commit | fccb12818a8bacdb59101ce5142af4caa4b2640a (patch) | |
| tree | 6dc22d0eb124214f4b9ad6c4eec0f24509efd84b /meta/recipes-graphics/wayland/weston-init | |
| parent | a1fa8d9ac53625737aab29b4e5e1687fc01bdfc2 (diff) | |
| download | poky-fccb12818a8bacdb59101ce5142af4caa4b2640a.tar.gz | |
weston-init: add a native systemd unit file
Previously weston was started by systemd via a classic init script
[YOCTO #5582]
(From OE-Core rev: e67c7f0998a5a285bd079d2c956bd61457e75077)
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/wayland/weston-init')
| -rw-r--r-- | meta/recipes-graphics/wayland/weston-init/weston.service | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/meta/recipes-graphics/wayland/weston-init/weston.service b/meta/recipes-graphics/wayland/weston-init/weston.service new file mode 100644 index 0000000000..4f1f7ff102 --- /dev/null +++ b/meta/recipes-graphics/wayland/weston-init/weston.service | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | [Unit] | ||
| 2 | Description=Weston Wayland compositor startup | ||
| 3 | RequiresMountsFor=/run | ||
| 4 | |||
| 5 | [Service] | ||
| 6 | User=root | ||
| 7 | EnvironmentFile=-/etc/default/weston | ||
| 8 | Environment="XDG_RUNTIME_DIR=/run/user/root" | ||
| 9 | ExecStartPre=/bin/mkdir -p /run/user/root | ||
| 10 | ExecStartPre=/bin/chmod 0700 /run/user/root | ||
| 11 | ExecStart=/usr/bin/openvt -v -e /usr/bin/weston -- $OPTARGS | ||
| 12 | |||
| 13 | [Install] | ||
| 14 | WantedBy=multi-user.target | ||
| 15 | |||
