]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/unit.c
unit: make unit_can_start() more accurate
authorLennart Poettering <lennart@poettering.net>
Sat, 5 Sep 2015 18:21:46 +0000 (20:21 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 5 Sep 2015 18:27:52 +0000 (20:27 +0200)
commit8ff4d2ab0d4758e914aea6d86154d85f2b2c787f
treec2aad8dec5154f193f8ad6a83c5bc173519a4faa
parent9ce56418b1ff83303c607a7759e8830ec73dbc19
unit: make unit_can_start() more accurate

This funciton is exposed via CanStart on the bus, and should be as
accurate as possible. Hence: make sure to return false for units of unit
types not supported on the system, and for unit types where
configuration failed to load.

Also see #1105.
src/core/unit.c