diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-08-07 20:46:49 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-08-07 20:46:49 -0400 |
commit | d1fab3fe88ae873b26b50359758776ad9e31968e (patch) | |
tree | b3358edafdceec282d1123ebef6df09b25c7d6c8 /test | |
parent | e66047ff62c971eefa32b42373420d61e3f2a9c1 (diff) |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/loopy3.service | 5 | ||||
l--------- | test/loopy4.service | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/test/loopy3.service b/test/loopy3.service new file mode 100644 index 0000000000..606e26b5da --- /dev/null +++ b/test/loopy3.service @@ -0,0 +1,5 @@ +[Service] +ExecStart=/bin/true + +[Unit] +Conflicts=loopy4.service diff --git a/test/loopy4.service b/test/loopy4.service new file mode 120000 index 0000000000..43e5658bcd --- /dev/null +++ b/test/loopy4.service @@ -0,0 +1 @@ +loopy3.service
\ No newline at end of file |