[systemd-devel] [PATCH] Add the most common consoles that MeeGo needs

Lennart Poettering lennart at poettering.net
Fri Jul 1 14:21:36 PDT 2011


On Fri, 01.07.11 14:08, Chris Ferron (chris.e.ferron at linux.intel.com) wrote:

> >>+m4_ifdef(`TARGET_MEEGO',
> >>+[Install]
> >>+Alias=sysinit.target.wants/serial-getty at ttyS0.service
> >>sysinit.target.wants/serial-getty at ttyS1.service
> >>sysinit.target.wants/serial-getty at tty01.service
> >>sysinit.target.wants/serial-getty at ttyO2.service
> >>+)m4_dnl

> > Hmm, what's the rationale behind this? if those devices never show up
> > then you end up spawning services with dependencies that necessarily
>
> Oh so you will attempt to spawn service defined by Alias even if
> they have not been enabled?

Well, but with an Alias= line like the above you will enable the service
for four ttys at once, and if I understood things correctly, then only
one of them is right for a specific platform? If so you'd have three
gettys started whose dependencies will time out.

> I thought you would set up the Alias and then only if you enabled
> that name would it attempt start the service.

That is correct, but with your line you'd - if you enable the unit - the
getty end up with four instances, thee of which would time out, iiuc.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list