On Wed, 26.06.13 15:06, har...@redhat.com (har...@redhat.com) wrote:

> From: Harald Hoyer <har...@redhat.com>
> 
> $ systemctl status dracut-initqueue.service
> dracut-initqueue.service - dracut initqueue hook
>    Loaded: loaded (/usr/lib/systemd/system/dracut-initqueue.service;
> static)
>    Active: inactive (dead)
>           start condition failed at Wed 2013-06-26 13:01:05 UTC; 22s ago
>      Docs: man:dracut-initqueue.service(8)

I'd prefer if we'd solve this without the journal. Instead, I think
"struct Condition" should be extended to store the most recent test
result in a tri-state, i.e. negative for "untested", zero for "failed",
positive for "succeeded". Then we should add bus property to the Unit
interface that is an array of structs with the conditions in them,
including their results.

We currently do not expose the parsed conditions at all on the bus. This
was mostly an oversight, but this this gives us the freedom to introduce
it now and include the result value in the array entries.

With that in place systemctl should simple retrieve this property and
show the results of *all* individual condition checks if the overall
condition result was negatzive.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to