From: Lennart Poettering Date: Sun, 16 May 2010 20:48:14 +0000 (+0200) Subject: swap: add swap.target Wants links only when running as system instance X-Git-Tag: 0.git+20100605+dfd8ee-1~13^2~3^2~6 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07c132ffdd4146b3c5c8c01b220147cfc13122bb;p=systemd swap: add swap.target Wants links only when running as system instance --- diff --git a/src/swap.c b/src/swap.c index bd49e1ea..2c7e4924 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;