]> err.no Git - systemd/commit
unit: signal explicitly if a condition failed in unit_start()
authorLennart Poettering <lennart@poettering.net>
Fri, 13 Apr 2012 17:04:38 +0000 (19:04 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 13 Apr 2012 17:46:51 +0000 (19:46 +0200)
commit691206668a0bf78895d4a5fe3772f4a10c790a90
treecde1934f9ce86bee56764959339a0a4a988f678c
parentbb061708d5aa83579f213bdfb67253f7027217c3
unit: signal explicitly if a condition failed in unit_start()

We shouldn't print a status message on the console if we skipped a unit
due to a condition. Hence make unit_start() return -ENOEXEC in such a
case which is mapped to JOB_SKIPPED which results in no console message.
src/core/job.c