package/x11r7/xserver_xorg-server: add systemd init
authorFrancois Perrad <fperrad@gmail.com>
Fri, 31 Jul 2020 15:14:50 +0000 (17:14 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 8 Aug 2020 16:20:23 +0000 (18:20 +0200)
run with same options as in S40xorg

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/x11r7/xserver_xorg-server/xorg.service [new file with mode: 0644]
package/x11r7/xserver_xorg-server/xserver_xorg-server.mk

diff --git a/package/x11r7/xserver_xorg-server/xorg.service b/package/x11r7/xserver_xorg-server/xorg.service
new file mode 100644 (file)
index 0000000..2745711
--- /dev/null
@@ -0,0 +1,11 @@
+[Unit]
+Description=Xorg server
+After=network.target
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/Xorg :0.0 vt01 -s 0 -noreset -allowMouseOpenFail
+Restart=always
+
+[Install]
+WantedBy=multi-user.target
index 8ccc04224d486eea7c1c4682ef5ea3b047182796..854123981dbc95042da44a59bb683bbc10834e3d 100644 (file)
@@ -224,6 +224,11 @@ XSERVER_XORG_SERVER_CONF_OPTS += --with-sha1=libsha1
 XSERVER_XORG_SERVER_DEPENDENCIES += libsha1
 endif
 
+define XSERVER_XORG_SERVER_INSTALL_INIT_SYSTEMD
+       $(INSTALL) -D -m 0644 package/x11r7/xserver_xorg-server/xorg.service \
+               $(TARGET_DIR)/usr/lib/systemd/system/xorg.service
+endef
+
 define XSERVER_XORG_SERVER_INSTALL_INIT_SYSV
        $(INSTALL) -D -m 755 package/x11r7/xserver_xorg-server/S40xorg \
                $(TARGET_DIR)/etc/init.d/S40xorg