Skip to contentSkip to conversation

package/x11r7/xserver_xorg-server: add systemd init

PATCH New Francois Perrad 2 participants 2 messages Jul 31, 2020 – Aug 8, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/x11r7/xserver_xorg-server: add systemd init

run with same options as in S40xorg

---
 package/x11r7/xserver_xorg-server/xorg.service        | 11 +++++++++++
 .../x11r7/xserver_xorg-server/xserver_xorg-server.mk  |  5 +++++
 2 files changed, 16 insertions(+)
 create mode 100644 package/x11r7/xserver_xorg-server/xorg.service
package/x11r7/xserver_xorg-server/xorg.service new file +11 -0
new file mode 100644
index 000000000..2745711cf
@@ -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
package/x11r7/xserver_xorg-server/xserver_xorg-server.mk +5 -0
index 8ccc04224..854123981 100644
@@ -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
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/1 package/x11r7/xserver_xorg-server: add systemd init

Quoted 8 lines · On Fri, 31 Jul 2020 17:14:50 +0200 Francois Perrad <[email protected]> wrote:

run with same options as in S40xorg

---
 package/x11r7/xserver_xorg-server/xorg.service        | 11 +++++++++++
 .../x11r7/xserver_xorg-server/xserver_xorg-server.mk  |  5 +++++
 2 files changed, 16 insertions(+)
 create mode 100644 package/x11r7/xserver_xorg-server/xorg.service

Applied to next, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com