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)
commit0faacd470dfbd24f4c6504da6f04213aa05f9d19
tree9b13b654d993efc475f9209f8b1cf602850ee27b
parent17d1f37d0dbd2d78b8866e1350c83a9755105144
unit: handle nicely of certain unit types are not supported on specific systems

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.
src/core/automount.c
src/core/busname.c
src/core/device.c
src/core/job.c
src/core/job.h
src/core/manager.c
src/core/mount.c
src/core/swap.c
src/core/unit.c
src/core/unit.h
src/systemctl/systemctl.c