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

Łukasz Stelmach l.stelmach at samsung.com
Wed Dec 4 04:44:29 PST 2013


It was <2013-11-29 pią 05:38>, when Peter Hutterer wrote:
> On Thu, Nov 28, 2013 at 04:21:12PM +0100, Hans de Goede wrote:
>> Hi All,
>> 
>> As I already mentioned in my self-introduction mail I'm a new member of
>> Red Hat's graphics team. One of the first things I'll be working on is
>> systemd integration, specifically support for the new systemd-logind
>> org.freedesktop.login1.Session TakeControl / TakeDevice and friends dbus
>> calls, which should allow Xorg to be able to run without root rights
>> on Linux machines with kms graphics, for detail see:
>> http://www.freedesktop.org/wiki/Software/systemd/logind/
>> 
>> Since I'm working on systemd integration Peter Hutterer has asked me to take
>> a look at the (mostly) unrelated systemd socket activation patches Samsung
>> has posted a while back:
>> http://thread.gmane.org/gmane.comp.freedesktop.xorg.devel/36092/focus=37694
>> 
>> I've reviewed and tested them, and done some minor cleanups to the
>> "Enable systemd socket activation" libxtrans patch. With these cleanups
>> added I believe these are ready to be pushed.
>> 
>> If someone wants to give these patches a test-run themselves, here are
>> some simple test instructions:
>> 
>> 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.socket
>
> are these two files something we should ship with the server (as examples,
> not install them) or with systemd?

IMHO server's documentation is a better place since, most probably,
everyone who would like to use this feature are going to need to tailor
it to their needs. Probably documentation in system should also mention
this possibility.

-- 
Łukasz Stelmach
Samsung R&D Institute Poland
Samsung Electronics
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20131204/eb0ec01f/attachment.pgp>


More information about the xorg-devel mailing list