Was passiert, wenn ich systemd auf einem System ausführt, das bereits läuft?

451
Andrey Portnoy

Aus Neugier habe ich gerade folgendes unter Debian 9.6 ausgeführt:

/lib/systemd/systemd 

was zu folgender Ausgabe führte:

Startup finished in 31ms. 

mit dem Prozess warten. Ich habe es mit Ctrl+ getötet C:

^CReceived SIGINT. 

Als ich den Befehl ein zweites Mal ausführte, änderte sich die Ausgabe:

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. 

Jetzt habe ich die folgenden 2 Prozesse:

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

zusätzlich zu:

1 /sbin/init 

Was ist los? Warum ist beim zweiten Durchlauf ein Fehler aufgetreten, beim ersten Lauf nicht? Leite ich drei Systeme gleichzeitig?

-2
Ich habe die systemd-Dokumente nicht gründlich gelesen, kann mich aber daran erinnern, dass sie von einem Nicht-Root-Konto, das kein PID-1-Konto ist, zur Überwachung anderer Prozesse verwendet werden kann. LawrenceC vor 5 Jahren 1

0 Antworten auf die Frage