[PATCH 0/3] libxtrans + xserver: Add support for systemd socket activation (v5)

Kristian Høgsberg krh at bitplanet.net
Mon Dec 2 12:54:05 PST 2013


On Mon, Dec 2, 2013 at 11:44 AM, Hans de Goede <hdegoede at redhat.com> wrote:
> Hi All,

Hi,

I didn't follow all this in detail, but I'm not sure that we need
Xtrans patches at all.  The server already has ListenOnOpenFD() in
os/connection.c.  It was added for launchd under OSX, but we use it
for xwayland socket activation too.

Kristian

> Here is v5 (I'm starting the numbering where Łukasz stopped) of the systemd
> socket activation patch-set. This version addresses all review comments
> made in response to my previous posting of this set.
>
> Testing can still be done like this:
>
> 1) Create a file named /etc/systemd/system/xorg.socket with the following
> contents:
>
> [Unit]
> Description=Xorg DISPLAY=:1.0 socket
>
> [Socket]
> ListenStream=/tmp/.X11-unix/X1
>
> [Install]
> WantedBy=sockets.target
>
> 2) Create a file named /etc/systemd/system/xorg.service with the following
> contents:
>
> [Unit]
> Description=Xorg DISPLAY=:1.0 Service
>
> [Service]
> ExecStart=/usr/bin/Xorg :1
>
> [Install]
> Also=xorg.socke
>
> 3) In a terminal / on the console do:
> export DISPLAY=:1
> metacity&
> xterm
>
> Regards,
>
> Hans
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel


More information about the xorg-devel mailing list