]> code.ossystems Code Review - openembedded-core.git/commitdiff
xserver-nodm-init: Respawn service in case of failure
authorRamon Fried <rfried@codeaurora.org>
Tue, 10 Apr 2018 11:20:40 +0000 (14:20 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 13 Apr 2018 15:55:26 +0000 (16:55 +0100)
It appears that sometimes xserver-nodm.service is starting before
display driver finished loading causing the following failure in
Xorg log:
(EE) open /dev/dri/card0: No such file or directory

The introduced by this patch is to restart the service,
hopefully the display driver will finish loading.

Signed-off-by: Ramon Fried <rfried@codeaurora.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm.service.in

index 324a26f54901118ac56439c81661b5c9e1cca249..87dc4f8fcd8ff3d599aea4fb8eebb53ea906ae4c 100644 (file)
@@ -5,6 +5,7 @@ Description=Xserver startup without a display manager
 EnvironmentFile=/etc/default/xserver-nodm
 User=@USER@
 ExecStart=/etc/xserver-nodm/Xserver
+Restart=always
 
 [Install]
 Alias=display-manager.service