unit: move "not supported" check after condition check in unit_start()
authorLennart Poettering <lennart@poettering.net>
Mon, 7 Sep 2015 12:08:24 +0000 (14:08 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 7 Sep 2015 12:10:53 +0000 (14:10 +0200)
commitd11a76451f21dbec5dcc0d65444b76124764d3b5
treedf3ff8bc19475ce65e2f2506f60ebe6039024452
parent47f5a38cdf98a220d6a0d4eb11a710a0a42ae5c4
unit: move "not supported" check after condition check in unit_start()

Make sure we always check conditions before checking whether the unit
type is supported in unit_start(), since condition checks are "clean
errors", while "not supported" errors are fatal.

This cleans up the boot output of systemd in containers, where a lot of
NOTSUPP lines were shown befor this fix.

This partially reverts 8ff4d2ab0d4758e914aea6d86154d85f2b2c787f which
reorder the checks.
src/core/unit.c