chiark / gitweb /
core: warn when merged units have conflicting dependencies
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 8 Aug 2014 00:46:49 +0000 (20:46 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 8 Aug 2014 00:46:49 +0000 (20:46 -0400)
commitd1fab3fe88ae873b26b50359758776ad9e31968e
treeb3358edafdceec282d1123ebef6df09b25c7d6c8
parente66047ff62c971eefa32b42373420d61e3f2a9c1
core: warn when merged units have conflicting dependencies

A unit should not Conflict with itself. It also does not make
much sense for a unit to be After or Before itself, or to
trigger itself in some way.

If one of those dependency types is encountered, warn, instead
of dropping it silently like other dependency types.

% build/systemd-analyze verify test/loopy3.service
...
Dependency Conflicts dropped when merging unit loopy4.service into loopy3.service
Dependency ConflictedBy dropped when merging unit loopy4.service into loopy3.service
src/core/unit.c
test/loopy3.service [new file with mode: 0644]
test/loopy4.service [new symlink]