Что происходит, когда я запускаю systemd в системе, которая уже запущена?

338
Andrey Portnoy

Из любопытства я просто запустил следующее на Debian 9.6:

/lib/systemd/systemd 

что привело к следующему выводу:

Startup finished in 31ms. 

с процессом ожидания. Я убил это с Ctrl+ C:

^CReceived SIGINT. 

Когда я запускал команду во второй раз, вывод изменился:

Failed to connect to API bus: Connection refused Failed to connect to API bus: Connection refused Failed to connect to API bus: Connection refused Failed to connect to API bus: Connection refused Failed to connect to API bus: Connection refused Failed to connect to API bus: Connection refused Failed to connect to API bus: Connection refused Failed to connect to API bus: Connection refused Failed to connect to API bus: Connection refused Failed to connect to API bus: Connection refused Failed to connect to API bus: Connection refused Failed to connect to API bus: Connection refused Failed to connect to API bus: Connection refused Failed to connect to API bus: Connection refused Failed to connect to API bus: Connection refused Failed to connect to API bus: Connection refused Failed to connect to API bus: Connection refused Failed to connect to API bus: Connection refused Failed to connect to API bus: Connection refused Failed to connect to API bus: Connection refused Failed to connect to API bus: Connection refused Failed to connect to API bus: Connection refused Failed to connect to API bus: Connection refused Failed to connect to API bus: Connection refused Failed to connect to API bus: Connection refused Failed to connect to API bus: Connection refused Failed to connect to API bus: Connection refused Failed to connect to API bus: Connection refused Failed to connect to API bus: Connection refused Failed to connect to API bus: Connection refused Startup finished in 29ms. 

Теперь у меня запущены следующие 2 процесса:

1410 /lib/systemd/systemd --user 11647 /lib/systemd/systemd --user 

в дополнение к:

1 /sbin/init 

Что здесь происходит? Почему второй запуск привел к ошибке, а первый - нет? Я использую три системы одновременно?

-2
Я не читал документы systemd подробно, но действительно напоминаю, что на самом деле он может использоваться учетной записью без полномочий root без PID-1 для контроля других процессов. LawrenceC 5 лет назад 1

0 ответов на вопрос

Похожие вопросы