chiark / gitweb /
transaction: add starting requirements for JOB_RESTART
[elogind.git] / src / core / transaction.c
index c3e1e1329698efa4dfc0ff74d5b290259b8e7a88..a2efcbcff4a03ea939fa8487f2c3e957ff93dda8 100644 (file)
@@ -866,7 +866,7 @@ int transaction_add_job_and_dependencies(
                 }
 
                 /* Finally, recursively add in all dependencies. */
-                if (type == JOB_START || type == JOB_RELOAD_OR_START) {
+                if (type == JOB_START || type == JOB_RELOAD_OR_START || type == JOB_RESTART) {
                         SET_FOREACH(dep, ret->unit->dependencies[UNIT_REQUIRES], i) {
                                 r = transaction_add_job_and_dependencies(tr, JOB_START, dep, ret, true, override, false, false, ignore_order, e);
                                 if (r < 0) {