[systemd-devel] Environment for prefdm.service

David Michael fedora.dm0 at gmail.com
Mon Jul 11 13:20:53 PDT 2011


Hi,

On Mon, Jul 11, 2011 at 3:34 PM, Lennart Poettering
<lennart at poettering.net> wrote:
>> It is distributed under /lib (along with its link
>> under graphical.target.wants), implying it should not be changed.
>
> Unit files (and symlinks) in /etc/systemd/system will override those in
> /lib/systemd/system if the bear the same name. If a user wants to
> deviate from the system default, he should should place his own symlink
> /ect/systemd/system/display-manager.service and leave /lib untouched.

Okay, this will work for me, at least on my current system.

I now see it didn't come out that way, but I intended to ask about
this in the context of package management when prefdm is no more
(i.e., no catch-all default under /lib).  I suppose it would be better
for me to wait until a bigger player such as gdm takes the plunge,
then I can follow suit.

> 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.

I will use this and a manual symlink in /etc for the time being.  Thanks.

David


More information about the systemd-devel mailing list