diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-10-14 11:22:14 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-10-14 11:22:14 -0400 |
commit | 340a1d6feaa67b8cb5c5cfadcc8201925c93c182 (patch) | |
tree | f382b0f99b9392eed0029cc7bd99b23ac70a1a16 /src/core | |
parent | 9ea79b459edef51e3ccc1ddde07c7b1399bed601 (diff) | |
parent | be3270ebd3634e3e5c489733dc022c91bf45fba7 (diff) |
Merge pull request #1563 from poettering/exciting-fixes
A variety of fixes
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/busname.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/busname.c b/src/core/busname.c index 38becfc119..b85fce5f8d 100644 --- a/src/core/busname.c +++ b/src/core/busname.c @@ -585,6 +585,12 @@ static void busname_enter_running(BusName *n) { } if (!pending) { + if (!UNIT_ISSET(n->service)) { + log_unit_error(UNIT(n), "Service to activate vanished, refusing activation."); + r = -ENOENT; + goto fail; + } + r = manager_add_job(UNIT(n)->manager, JOB_START, UNIT_DEREF(n->service), JOB_REPLACE, true, &error, NULL); if (r < 0) goto fail; |