On Sun, Aug 23, 2015 at 05:32:18PM +0200, Julien Cristau wrote: > On Fri, Nov 21, 2014 at 16:02:15 +0100, Alessandro Ghedini wrote: > > > diff --git a/debian/patches/22_systemd_service.diff > > b/debian/patches/22_systemd_service.diff > > new file mode 100644 > > index 0000000..3d8161d > > --- /dev/null > > +++ b/debian/patches/22_systemd_service.diff > > @@ -0,0 +1,13 @@ > > +--- a/xdm.service.in > > ++++ b/xdm.service.in > > +@@ -3,7 +3,7 @@ > > + After=systemd-user-sessions.service > > + > > + [Service] > > ++# temporary safety check until all DMs are converted to correct > > ++# display-manager.service symlink handling > > ++ExecStartPre=/bin/sh -c '[ "$(cat /etc/X11/default-display-manager > > 2>/dev/null)" = "/usr/bin/xdm" ]' > > + ExecStart=BINDIR/xdm -nodaemon > > +- > > +-[Install] > > +-Alias=graphical.target.wants/xdm.service > > What does "correct" mean here?
"correct" as in "how systemd expects it" I suppose. That part came from the lightdm.service file though, so they are not my own words. I imagine they meant that once every dm provides a systemd unit file, the /etc/X11/default-display-manager mechanism can be replaced by the display-manager.service symlink when systemd is used, so that that check can be removed. > How is that symlink handled exactly? As far as I understand it, just like /etc/X11/default-display-manager is. The display-manager.service symlink points to the unit file of the default display manager (the difference being that default-display-manager is not a symlink) and systemd will start it automatically From the systemd.special(7) manpage: > display-manager.service > The display manager service. Usually this should be aliased (symlinked) to > gdm.service or a similar display manager service. Cheers
signature.asc
Description: Digital signature