chiark / gitweb /
unit: rework stop pending logic
[elogind.git] / src / core / path.c
index e1330f6c95e3a994355e37a5003bea9c82a4c3f8..ab1fe2eb6539852f8e27ed0b294bd35381fa74b1 100644 (file)
@@ -523,7 +523,7 @@ static void path_enter_running(Path *p) {
         dbus_error_init(&error);
 
         /* Don't start job if we are supposed to go down */
-        if (unit_pending_inactive(UNIT(p)))
+        if (unit_stop_pending(UNIT(p)))
                 return;
 
         r = manager_add_job(UNIT(p)->manager, JOB_START, UNIT_TRIGGER(UNIT(p)),