summaryrefslogtreecommitdiff
path: root/src/systemctl
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-05-09 17:06:46 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-05-09 17:07:37 +0900
commitfb507898a3a697697173a3f6010f51166803489b (patch)
tree4f18b66d5a7910014426cc3b4a2aaa2943497e0e /src/systemctl
parentf7e29336778534b42f0a6bc57524c5b4c22e90fe (diff)
downloadsystemd-fb507898a3a697697173a3f6010f51166803489b.tar.gz
bus-util: print a friendly message when PID1 is not systemd
Follow-up for 861f16d2679eeda79e8185057cef24653913e300. Fixes #8913.
Diffstat (limited to 'src/systemctl')
-rw-r--r--src/systemctl/systemctl.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index a9461aa391..a6646aa7f6 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -211,12 +211,6 @@ static int acquire_bus(BusFocus focus, sd_bus **ret) {
user = arg_scope != UNIT_FILE_SYSTEM;
- if (!user && sd_booted() <= 0) {
- /* Print a friendly message when the local system is actually not running systemd as PID 1. */
- log_error("System has not been booted with systemd as init system (PID 1). Can't operate.");
- return -EHOSTDOWN;
- }
-
if (focus == BUS_MANAGER)
r = bus_connect_transport_systemd(arg_transport, arg_host, user, &busses[focus]);
else