[systemd-devel] [PATCH] systemd: return error when asked to stop unknown unit

Michal Schmidt mschmidt at redhat.com
Tue Jun 19 02:45:33 PDT 2012


On 06/19/2012 10:00 AM, Michal Sekletar wrote:
> +                if (job_type == JOB_STOP && u->load_state == UNIT_ERROR && unit_active_state(u) == UNIT_INACTIVE) {

In case anyone's wondering why there's the check for the unit's active 
state: It is possible to have units that are active and have a load 
error at the same time. We want to be able to stop these units.

Thanks, applied.

Michal


More information about the systemd-devel mailing list