summaryrefslogtreecommitdiff
path: root/plugins/systemd_inhibit.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/systemd_inhibit.c')
-rw-r--r--plugins/systemd_inhibit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/systemd_inhibit.c b/plugins/systemd_inhibit.c
index e2cbcffbb..0ddca9cd8 100644
--- a/plugins/systemd_inhibit.c
+++ b/plugins/systemd_inhibit.c
@@ -52,7 +52,9 @@ static int inhibit(void)
dbus_message_unref(reply);
}
- if (dbus_error_is_set(&err)) {
+ if (dbus_error_is_set(&err)
+ && !dbus_error_has_name(&err, DBUS_ERROR_NO_SERVER)
+ && !dbus_error_has_name(&err, DBUS_ERROR_FILE_NOT_FOUND)) {
rpmlog(RPMLOG_WARNING,
"Unable to get systemd shutdown inhibition lock: %s\n",
err.message);