diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-05-16 22:48:14 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-05-16 22:48:14 +0200 |
commit | 07c132ffdd4146b3c5c8c01b220147cfc13122bb (patch) | |
tree | 8ecefb58a9522414d0857c8d9271163d7c636b6f | |
parent | 307e85efbb781ac609b6b3f905ff76b886ddd01e (diff) |
swap: add swap.target Wants links only when running as system instance
-rw-r--r-- | src/swap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/swap.c b/src/swap.c index bd49e1ea2b..2c7e4924d6 100644 --- a/src/swap.c +++ b/src/swap.c @@ -115,7 +115,7 @@ static int swap_add_target_links(Swap *s) { if ((r = manager_load_unit(s->meta.manager, SPECIAL_SWAP_TARGET, NULL, &tu)) < 0) return r; - if (!p->noauto && p->handle) + if (!p->noauto && p->handle && s->meta.manager->running_as != MANAGER_SESSION) if ((r = unit_add_dependency(tu, UNIT_WANTS, UNIT(s), true)) < 0) return r; |