2022-04-15 01:41:22 +00:00
|
|
|
From 213279752124dc4a57a4189df9b5b2e96feaa0b3 Mon Sep 17 00:00:00 2001
|
2020-04-24 23:36:52 +00:00
|
|
|
From: Eelco Dolstra <eelco.dolstra@logicblox.com>
|
|
|
|
Date: Mon, 11 May 2015 15:39:38 +0200
|
2022-01-13 20:06:32 +00:00
|
|
|
Subject: [PATCH 06/19] Get rid of a useless message in user sessions
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
Namely lots of variants of
|
|
|
|
|
|
|
|
Unit nix-var-nix-db.mount is bound to inactive unit dev-disk-by\x2dlabel-nixos.device. Stopping, too.
|
|
|
|
|
|
|
|
in containers.
|
|
|
|
---
|
2021-09-26 12:46:18 +00:00
|
|
|
src/core/manager.c | 3 ++-
|
2020-04-24 23:36:52 +00:00
|
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
diff --git a/src/core/manager.c b/src/core/manager.c
|
2022-04-15 01:41:22 +00:00
|
|
|
index 9368a1dfa1..5b0bdb1bc7 100644
|
2021-09-26 12:46:18 +00:00
|
|
|
--- a/src/core/manager.c
|
|
|
|
+++ b/src/core/manager.c
|
2022-04-15 01:41:22 +00:00
|
|
|
@@ -1408,7 +1408,8 @@ static unsigned manager_dispatch_stop_when_bound_queue(Manager *m) {
|
2021-09-26 12:46:18 +00:00
|
|
|
if (!unit_is_bound_by_inactive(u, &culprit))
|
|
|
|
continue;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
- log_unit_debug(u, "Unit is stopped because bound to inactive unit %s.", culprit->id);
|
|
|
|
+ if (u->type != UNIT_MOUNT || detect_container() <= 0)
|
|
|
|
+ log_unit_debug(u, "Unit is stopped because bound to inactive unit %s.", culprit->id);
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
/* If stopping a unit fails continuously we might enter a stop loop here, hence stop acting on the
|
|
|
|
* service being unnecessary after a while. */
|
2020-04-24 23:36:52 +00:00
|
|
|
--
|
2022-04-15 01:41:22 +00:00
|
|
|
2.34.0
|
2020-04-24 23:36:52 +00:00
|
|
|
|