Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
init 0/6 bzw. halt now bzw shutdown bzw. reboot
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
l3u
Advocate
Advocate


Joined: 26 Jan 2005
Posts: 2546
Location: Konradsreuth (Germany)

PostPosted: Wed Jul 20, 2022 12:18 pm    Post subject: init 0/6 bzw. halt now bzw shutdown bzw. reboot Reply with quote

Hallo allerseits!

Ich hab schon immer mein System (wenn's von der Konsole aus sein sollte) mit "init 0" heruntergefahren und mit "init 6" neu gestartet.

Momentan experimentiere ich auf ein paar Rechnern, die ich selber gar nicht benutze, sondern nur warte, mit Artix Linux rum (Artix/OpenRC ist eigentlich fast wie Gentoo, nur ohne die ganze Kompiliererei ;-). Was mir da aufgefallen ist: "init" macht nichts. "init" → nichts passiert. "init 0" → nichts. "init 6" → nichts. Nichts in dmesg, nichts im syslog. /sbin/init ist ein Symlink auf openrc-init.

Ich hab schon mal dort im Forum gefragt, wie sich das verhält, aber außer "Ist halt so" is da nix rumgekommen.

Deswegen mal die generelle Frage:

Ist "init" zum Herunterfahren bzw. Neustarten eines Linux-Systems nur ein Überbleibsel von anno dazumal? Ist das heutzutage nicht mehr en vogue? Wie macht man das auf einem modernen Linux-System? Gibt es Unterschiede zwischen "halt", "shutdown", "reboot" etc.?

Vielen Dank für jede Erleuchtung :-)
Back to top
View user's profile Send private message
l3u
Advocate
Advocate


Joined: 26 Jan 2005
Posts: 2546
Location: Konradsreuth (Germany)

PostPosted: Wed Jul 20, 2022 1:04 pm    Post subject: Reply with quote

Okay, ich hab mich selbst erleuchtet :-P

Gentoo benutzt selber gar nicht das init von OpenRC, sondern sysvinit: https://wiki.gentoo.org/wiki/OpenRC/openrc-init

Im Gegensatz zu Artix. Und openrc-init kennt schlicht Nummern-Runlevel nicht; man muss openrc-shutdown zum Herunterfahren bzw. Neustarten nutzen (vgl man openrc-init).

Also ist das "init 0" und "init 6" kein generelles Linux-Ding, sondern ein sysvinit-Ding.

Wieder was gelernt ;-)
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Wed Jul 20, 2022 1:27 pm    Post subject: Reply with quote

l3u wrote:
Gentoo benutzt selber gar nicht das init von OpenRC, sondern sysvinit: https://wiki.gentoo.org/wiki/OpenRC/openrc-init

Man kann Gentoo sowohl mit sysv-init, als auch mit openrc-init installieren.

Ich habe meine Maschinen gerade von Systemd nach OpenRC zurückmigriert. Zuerst habe ich openrc-init konfiguriert. Dabei bin ich auch über das init-Problem gestolpert. Der Befehl "reboot", den ich häufig verwende, war zwar noch da, hat aber keinen Reboot ausgeführt. Ich hatte keine Lust mich tiefer einzuarbeiten - und bin zu dem guten alten sysv-init gewechselt. Jetzt funktioniert wieder alles wie früher. :D
Back to top
View user's profile Send private message
l3u
Advocate
Advocate


Joined: 26 Jan 2005
Posts: 2546
Location: Konradsreuth (Germany)

PostPosted: Wed Jul 20, 2022 1:33 pm    Post subject: Reply with quote

Gut, das war nicht korrekt formuliert: Gentoo benutzt standardmäßig nicht openrc-init.

mike155 wrote:
Ich habe meine Maschinen gerade von Systemd nach OpenRC zurückmigriert.

Gute Entscheidung ;-)

mike155 wrote:
Jetzt funktioniert wieder alles wie früher. :D

So, wie es sein soll.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum