[systemd-devel] [PATCH] Log failing start conditions
lennart at poettering.net
Tue Jul 16 10:15:56 PDT 2013
On Wed, 26.06.13 15:06, harald at redhat.com (harald at redhat.com) wrote:
> From: Harald Hoyer <harald at redhat.com>
> $ systemctl status dracut-initqueue.service
> dracut-initqueue.service - dracut initqueue hook
> Loaded: loaded (/usr/lib/systemd/system/dracut-initqueue.service;
> 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 Poettering - Red Hat, Inc.
More information about the systemd-devel