package/x11r7/xserver_xorg-server: add systemd init
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>
This commit is contained in:
parent
03fa0f119c
commit
97867fc593
11
package/x11r7/xserver_xorg-server/xorg.service
Normal file
11
package/x11r7/xserver_xorg-server/xorg.service
Normal file
@ -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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user