diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/systemctl/systemctl-logind.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/systemctl/systemctl-logind.c b/src/systemctl/systemctl-logind.c index fc64e60c64..1258852a01 100644 --- a/src/systemctl/systemctl-logind.c +++ b/src/systemctl/systemctl-logind.c @@ -152,6 +152,9 @@ int logind_check_inhibitors(enum action a) { return 0; r = acquire_bus(BUS_FULL, &bus); + if (r == -ECONNREFUSED && geteuid() == 0) + return 0; /* When D-Bus is not running, allow root to force a shutdown. E.g. when running at + * the emergency console. */ if (r < 0) return r; |