[systemd-devel] Environment for prefdm.service

Lennart Poettering lennart at poettering.net
Mon Jul 11 13:11:15 PDT 2011


On Mon, 11.07.11 15:51, Bill Nottingham (notting at redhat.com) wrote:

> 
> Lennart Poettering (lennart at poettering.net) said: 
> > > Sorry if I'm missing something simple or if I have confused myself
> > > beyond all hope.  I appreciate any advice on how to prepare this in a
> > > future-compatible way.
> > 
> > My recommendation is to simply list display-manager.service in Alias= in
> > [Install] in your unit file. Since that symlink can only point to one
> > service we should be safe. The choice which one to start is done with
> > this symlink and nothing else.
> 
> While this is correct, the issue we'd have off the top of my head
> is if it's possible, in packaging, to have things automatically work
> such that:
> 
> - installing multiple DMs gives you a predictable default
> - removing whatever the current default is falls back to other DMs
>   that are currently installed

If people want these problems solved one option would be to manage the
display-manager.service symlink with Debian's alternative system, but in
general I'd probably just ignore this, and just say the first
installation wins.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list