Bug#764607: systemd: systemctl does not re-create display-manager.service symlink

Michael Biebl biebl at debian.org
Wed Sep 30 22:45:18 BST 2015


On Mon, 24 Nov 2014 09:23:22 +0100 Didier Roche <didrocks at ubuntu.com> wrote:
> Le 22/11/2014 21:28, Andrei POPESCU a écrit :
> >
> > 2b. Each display manager must add a Conflicts=[all other DMs]
> 
> You don't really need to maintain a long list of Conflicts (which will 
> never be kept up to date). I suggested last wek to the gdm maintainers 
> that we start using the Alias. That enables to have only one DM enable 
> at a time, having systemctl creating the symlink and conflicting when 
> needed. Finally, the postinst maintainer script is easier. Then, you 
> don't really need WantedBy=graphical.target I guess.
> 
> 
> I didn't hear from the gdm3-pkg team yet, let me paste my suggestions:
> 
> ---------------
> We discussed a little bit today with Martin on providing other display 
> managers like xdm with systemd services.
> 
> I looked at the existing postinst of lightdm and I think we can leverage 
> systemd Alias to keep the exact same functionality, but removing the 
> internal systemd knowledge from the postinst scripts. The end result on 
> disk would be exactly the same than the existing implementation, we just 
> remove the manual handling of symlinks.
> 
> The idea is to add:
> [Install]
> Alias=display-manager.service
> 

Right, this is not a bug in systemd, but in the involved display managers.

They should use dh-systemd --no-enable and add the [Install] section
Didier posted.

Anyone up for checking the existing display manager service file and
file bug reports accordingly.?


Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20150930/6fcf0dcf/attachment-0001.sig>


More information about the Pkg-systemd-maintainers mailing list