[systemd-devel] systemctl user start Xorg

arnaud gaboury arnaud.gaboury at gmail.com
Mon Nov 3 08:45:39 PST 2014


>
> Perhaps
> /etc/X11/Xwrapper.config
> needs_root_rights = auto
> allowed_users = anybody

I placed the Xwrapper.config, but the xorg.service still fails

My unit files :

$XDG_CONFIG_HOME/systemd/user/xorg.service
--------------------------------
[Unit]
Description=Xorg server at display :0
Requires=xorg.socket
After=xorg.socket

[Service]
ExecStart=/usr/bin/Xorg.bin -nolisten tcp :0 vt1

[Install]
WantedBy=wm.target



$XDG_CONFIG_HOME/systemd/user/xorg.socket
------------------------------------
[Unit]
Description=Xorg Server Socket

[Socket]
ListenStream=/tmp/.X11-unix/X0

[Install]
WantedBy=sockets.target


$ systemctl --user status xorg
● xorg.service - Xorg server at display :0
   Loaded: loaded (/home/gabx/.config/systemd/user/xorg.service; enabled)
   Active: failed (Result: start-limit) since Mon 2014-11-03 17:40:09
CET; 2min 0s ago
  Process: 825 ExecStart=/usr/bin/Xorg.bin -nolisten tcp :0 vt1
(code=exited, status=1/FAILURE)
 Main PID: 825 (code=exited, status=1/FAILURE)

Nov 03 17:40:09 hortensia Xorg.bin[825]: (EE)
Nov 03 17:40:09 hortensia Xorg.bin[825]: Please consult the The X.Org
Foundation support
Nov 03 17:40:09 hortensia Xorg.bin[825]: at http://wiki.x.org
Nov 03 17:40:09 hortensia Xorg.bin[825]: for help.
Nov 03 17:40:09 hortensia systemd[759]: xorg.service: main process
exited, code=exited, status=1/FAILURE
Nov 03 17:40:09 hortensia systemd[759]: Failed to start Xorg server at
display :0.
Nov 03 17:40:09 hortensia systemd[759]: Unit xorg.service entered failed state.
Nov 03 17:40:09 hortensia systemd[759]: Starting Xorg server at display :0...
Nov 03 17:40:09 hortensia systemd[759]: xorg.service start request
repeated too quickly, refusing to start.
Nov 03 17:40:09 hortensia systemd[759]: Failed to start Xorg server at
display :0.


Xorg.0.log
-----------------------
.......
[     5.471] (++) using VT number 1

[     5.471] (WW) xf86OpenConsole: setpgid failed: Operation not permitted
[     5.471] (WW) xf86OpenConsole: setsid failed: Operation not permitted
[     5.471] (EE)
Fatal server error:
[     5.471] (EE) xf86OpenConsole: Cannot open virtual console 1
(Permission denied)
[     5.471] (EE)


Thank you for any suggestions


More information about the systemd-devel mailing list