|
|
bd1529 |
From 65e96327360ab41d44d5383dcecc82a19fad198c Mon Sep 17 00:00:00 2001
|
|
|
bd1529 |
From: Michal Sekletar <msekleta@redhat.com>
|
|
|
bd1529 |
Date: Fri, 22 Feb 2019 15:50:55 +0100
|
|
|
bd1529 |
Subject: [PATCH] logind: don't print warning when user@.service template is
|
|
|
bd1529 |
masked
|
|
|
bd1529 |
|
|
|
bd1529 |
User instance of systemd is optional feature and if user@.service
|
|
|
bd1529 |
template is masked then administrator most likely doesn't want --user
|
|
|
bd1529 |
instances of systemd for logged in users. We don't need to be verbose
|
|
|
bd1529 |
about it.
|
|
|
bd1529 |
|
|
|
bd1529 |
(cherry picked from commit 03b6fa0c5b51b0d39334ff6ba183a3391443bcf6)
|
|
|
bd1529 |
|
|
|
bd1529 |
Resolves: #1880270
|
|
|
bd1529 |
---
|
|
|
bd1529 |
src/login/logind-user.c | 3 ++-
|
|
|
bd1529 |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
bd1529 |
|
|
|
bd1529 |
diff --git a/src/login/logind-user.c b/src/login/logind-user.c
|
|
|
bd1529 |
index 8c4cd54a29..56b8066f12 100644
|
|
|
bd1529 |
--- a/src/login/logind-user.c
|
|
|
bd1529 |
+++ b/src/login/logind-user.c
|
|
|
bd1529 |
@@ -326,7 +326,8 @@ static int user_start_service(User *u) {
|
|
|
bd1529 |
&job;;
|
|
|
bd1529 |
if (r < 0)
|
|
|
bd1529 |
/* we don't fail due to this, let's try to continue */
|
|
|
bd1529 |
- log_error_errno(r, "Failed to start user service, ignoring: %s", bus_error_message(&error, r));
|
|
|
bd1529 |
+ log_full_errno(sd_bus_error_has_name(&error, BUS_ERROR_UNIT_MASKED) ? LOG_DEBUG : LOG_WARNING, r,
|
|
|
bd1529 |
+ "Failed to start user service '%s', ignoring: %s", u->service, bus_error_message(&error, r));
|
|
|
bd1529 |
else
|
|
|
bd1529 |
u->service_job = job;
|
|
|
bd1529 |
|