[systemd-devel] Running a systemd-based Gentoo system

Lennart Poettering lennart at poettering.net
Mon Sep 13 10:06:48 PDT 2010


On Wed, 08.09.10 15:45, Tomasz Torcz (tomek at pipebreaker.pl) wrote:

> On Wed, Sep 08, 2010 at 08:41:48AM -0500, Jack Byer wrote:
> > > > The two examples you've listed are supported already.
> > >
> > > Jack, did you check EnvironmentFile=/etc/conf.d/xyz?
> > > if this file defines ABC=123, then you can use ExecStart=/path/to/app $ABC
> > >
> > I don't believe that feature existed when I first looked at systemd
> > but it sounds like exactly what would be needed.
> > 
> > > AFAIK the first ExecStart must be a full path to the binary and cannot
> > > come from envvars.
> > 
> > So if you have a system that has xdm, kdm and gdm all installed at the
> > same time, how would you choose which one to start? Likewise with
> > openssh and ssh, etc.
> 
>   Not sure about Gentoo, but Debian and Fedora have “alternatives” subsystem,
> which helps in such situation.

The Alias= logic built into "systemctl enable" is similar to
alternatives, but much simpler and nicer, and doesn't require the extra
indirection that alternatives requires.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list