[systemd-devel] [PATCH 2/2] systemd, systemctl: export and show failing condition
Harald Hoyer
harald at redhat.com
Wed Jun 26 06:02:58 PDT 2013
On 06/26/2013 02:11 PM, Zbigniew Jędrzejewski-Szmek wrote:
> $ systemctl --user status hoohoo
> hoohoo.service
> Loaded: loaded (/home/zbyszek/.config/systemd/user/hoohoo.service; static)
> Active: inactive (dead)
> start condition failed at Tue 2013-06-25 18:08:42 EDT; 1s ago
> ConditionPathExists=/tmp/hoo was not met
> ---
Well, that's not so easy, because there can be multiple Conditions, which failed.
I'll post my patch, which will result in this:
switch_root:/# systemctl status dracut-initqueue.service --all --no-pager
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)
Jun 26 13:01:05 lenovo systemd[1]: Starting of dracut-initqueue.service skipped
because the following start conditions were not met:
ConditionKernelCommandLine:|rd.break=initqueue
ConditionPathExistsGlob: |/lib/dracut/hooks/initqueue/timeout/*.sh
ConditionPathExistsGlob: |/lib/dracut/hooks/initqueue/online/*.sh
ConditionPathExistsGlob: |/lib/dracut/hooks/initqueue/finished/*.sh
ConditionPathExistsGlob: |/lib/dracut/hooks/initqueue/settled/*.sh
ConditionPathExistsGlob: |/lib/dracut/hooks/initqueue/*.sh
ConditionPathExists: |/lib/dracut/need-initqueue
Jun 26 13:01:05 lenovo systemd[1]: Started dracut initqueue hook.
More information about the systemd-devel
mailing list