diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-12-10 18:53:08 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-12-10 18:53:56 +0000 |
commit | ecad10fe4a4c247da72cafbc7b37f843c7c30c06 (patch) | |
tree | 515dc1ff94e24a36467fc0d3b8d0dbc0c07d4060 | |
parent | 98088803bb2a9f89b7bbc063123dda3343138f18 (diff) |
Revert "systemd: add a start job for all units in SYSTEMD_[USER_]WANTS="
This reverts commit e775289d56ace2f8d23e62ed79316d71332d6d05.
We really should let the dependency logic add jobs for dependencies here
rather than manually adding in jobs, overtaping the real problem.
-rw-r--r-- | src/core/device.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/core/device.c b/src/core/device.c index 19fc7451d8..4ff7c37238 100644 --- a/src/core/device.c +++ b/src/core/device.c @@ -264,7 +264,6 @@ static int device_update_unit(Manager *m, struct udev_device *dev, const char *p FOREACH_WORD_QUOTED(w, l, wants, state) { _cleanup_free_ char *n = NULL; char e[l+1]; - Unit *other; memcpy(e, w, l); e[l] = 0; @@ -278,15 +277,6 @@ static int device_update_unit(Manager *m, struct udev_device *dev, const char *p r = unit_add_dependency_by_name(u, UNIT_WANTS, n, NULL, true); if (r < 0) goto fail; - - other = manager_get_unit(u->manager, n); - if (!other || !unit_can_start(other)) - continue; - - r = manager_add_job(u->manager, JOB_START, other, JOB_REPLACE, true, NULL, NULL); - if (r < 0) - log_warning("Failed to add job %s/%s, ignoring: %s.", - other->id, job_type_to_string(JOB_START), strerror(-r)); } } } |