chiark / gitweb /
job: always add waiting jobs to run queue during coldplug
[elogind.git] / src / core / job.c
index 35a9de6ee354a5ec230cc0b78fd549ec16eb1e53..dc4f44150c3c6fbc091092762ad36ef74ac07436 100644 (file)
@@ -1060,6 +1060,9 @@ int job_coldplug(Job *j) {
         if (r < 0)
                 return r;
 
+        if (j->state == JOB_WAITING)
+                job_add_to_run_queue(j);
+
         if (j->begin_usec == 0 || j->unit->job_timeout == 0)
                 return 0;