chiark / gitweb /
unit: handle nicely of certain unit types are not supported on specific systems
authorLennart Poettering <lennart@poettering.net>
Fri, 12 Dec 2014 20:05:32 +0000 (21:05 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 15 Dec 2014 18:02:17 +0000 (19:02 +0100)
Containers do not really support .device, .automount or .swap units;
Systems compiled without support for swap do not support .swap units;
Systems without kdbus do not support .busname units.

With this change attempts to start a unsupported unit types will result
in an immediate "unsupported" job result, which is a lot more
descriptive then before. Also, attempts to start device units in
containers will now immediately fail instead of causing jobs to be
enqueued that never go away.


No differences found