[systemd-devel] Special targets - should they Want or be WantedBy?

Mike Kazantsev mk.fraggod at gmail.com
Thu Mar 17 01:06:23 PDT 2011


On Thu, 17 Mar 2011 01:04:35 +0100
Lennart Poettering <lennart at poettering.net> wrote:

> On Wed, 16.03.11 14:39, Andrey Borzenkov (arvidjaar at mail.ru) wrote:
> 
> > > Or is rsyslog expected to provide a symlink in syslog.target.wants?
> > >
> > 
> > This is really orthogonal. As Lennart commented, it may be sensible to
> > do both. But this symlink does not ensure syslog is actually started
> > before syslog.target.
> 
> Well, actually there is.
> 
> If DefaultDependencies= is "yes" (which it is by default) for target
> units then they'll automatically gain an After= for all untis they have
> Wants= or Requires= on.
> 
> (We currently do not document what DefaultDependencies= actually means
> for the specific unit types. We probably should...)
> 

Can this behavior be relied upon or this might change in future
releases?

It's just that this magic bit makes After= line in lots of units I've
seen (and wrote) redundant, so can it be dropped and skipped in any
new units or it's better to be explicit in this case?

-- 
Mike Kazantsev // fraggod.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20110317/d8841dea/attachment-0001.pgp>


More information about the systemd-devel mailing list