Difference between revisions of "Init Rosetta"

From ArchWiki
Jump to: navigation, search
m (fix ja link)
 
(27 intermediate revisions by 13 users not shown)
Line 1: Line 1:
 +
{{Lowercase title}}
 
[[Category:Boot process]]
 
[[Category:Boot process]]
 +
[[es:Init Rosetta]]
 +
[[ja:Init 比較表]]
 
[[ru:Init Rosetta]]
 
[[ru:Init Rosetta]]
 +
{{Expansion|Add comparisons with the other available [[init]] systems.}}
 +
 +
{{Related articles start}}
 +
{{Related|init}}
 +
{{Related articles end}}
 +
 +
This article draws a parallel between [[systemd]] and other [[init]] systems.
 +
 +
You can omit the {{ic|.service}} and {{ic|.target}} extensions, especially if temporarily editing the [[kernel parameters]].
 +
 +
== SysVinit ==
 +
 
{| class="wikitable"
 
{| class="wikitable"
 +
! systemd !! SysVinit !! OpenRC !! Description
 
|-
 
|-
! scope="col"| Init Command   
+
| {{ic|systemctl list-units}} || {{ic|rc.d list}} || {{ic|rc-status}} || List running services status
! scope="col"| systemd Command   
+
! scope="col"| Comment   
+
 
|-
 
|-
| align="center"| rc.d {start | stop | restart...} daemon 
+
| {{ic|systemctl --failed}} || || {{ic|rc-status --crashed}} || Check failed services
| align="left"| systemctl {start | stop | restart...} daemon.service 
+
| align="center"|Change service state
+
 
|-
 
|-
| align="center"|rc.d list
+
| {{ic|systemctl --all}} || || {{ic|rc-update -v show}} || Display all available services.
| align="left"| systemctl list-unit-files --type=service
+
| align="center"|List Services
+
 
|-
 
|-
| align="center"|chkconfig daemon {on | off}
+
| {{ic|systemctl (start, stop, restart, status) daemon.service}} || {{ic|rc.d (start, stop, restart) daemon}} || {{ic|rc-service daemon (start, stop, restart, status)}} || Change service state.
| align="left"| systemctl {enable | disable} daemon.service
+
|-
| align="center"|Turn service on or off
+
| {{ic|systemctl (enable, disable) daemon.service}} || {{ic|chkconfig daemon (on, off)}} || {{ic|rc-update (add, del) daemon}} || Turn service on or off.
 
|-
 
|-
| align="center"| chkconfig daemon --add
+
| {{ic|systemctl daemon-reload}} || {{ic|chkconfig daemon --add}} || || Create or modify configuration.
| align="left"| systemctl daemon-reload
+
| align="center"| Use when you create or modify configs/scripts 
+
 
|}
 
|}
  
 
=== Targets table ===
 
=== Targets table ===
{| border="1"
+
 
!SysV Runlevel!!systemd Target!!Notes
+
{| class="wikitable"
 +
! systemd Target !! SysV Runlevel !! Notes
 
|-
 
|-
| 0 || runlevel0.target, poweroff.target || Halt the system.
+
| runlevel0.target, poweroff.target || 0 || Shut down the system.
 
|-
 
|-
| 1, s, single || runlevel1.target, rescue.target || Single user mode.
+
| runlevel1.target, rescue.target || 1, s, single || Single user mode.
 
|-
 
|-
| 2, 4 || runlevel2.target, runlevel4.target, multi-user.target || User-defined/Site-specific runlevels. By default, identical to 3.
+
| runlevel2.target, runlevel4.target, multi-user.target || 2, 4 || User-defined/Site-specific runlevels. By default, identical to 3.
 
|-
 
|-
| 3 || runlevel3.target, multi-user.target || Multi-user, non-graphical. Users can usually login via multiple consoles or via the network.
+
| runlevel3.target, multi-user.target || 3 || Multi-user, non-graphical. Users can usually login via multiple consoles or via the network.
 
|-
 
|-
| 5 || runlevel5.target, graphical.target || Multi-user, graphical. Usually has all the services of runlevel 3 plus a graphical login.
+
| runlevel5.target, graphical.target || 5 || Multi-user, graphical. Usually has all the services of runlevel 3 plus a graphical login.
 
|-
 
|-
| 6 || runlevel6.target, reboot.target || Reboot
+
| runlevel6.target, reboot.target || 6 || Reboot
 
|-
 
|-
| emergency || emergency.target || Emergency shell
+
| emergency.target || emergency || Emergency shell
 
|-
 
|-
 +
|}

Latest revision as of 12:31, 28 February 2015

Tango-view-fullscreen.pngThis article or section needs expansion.Tango-view-fullscreen.png

Reason: Add comparisons with the other available init systems. (Discuss in Talk:Init Rosetta#)

Related articles

This article draws a parallel between systemd and other init systems.

You can omit the .service and .target extensions, especially if temporarily editing the kernel parameters.

SysVinit

systemd SysVinit OpenRC Description
systemctl list-units rc.d list rc-status List running services status
systemctl --failed rc-status --crashed Check failed services
systemctl --all rc-update -v show Display all available services.
systemctl (start, stop, restart, status) daemon.service rc.d (start, stop, restart) daemon rc-service daemon (start, stop, restart, status) Change service state.
systemctl (enable, disable) daemon.service chkconfig daemon (on, off) rc-update (add, del) daemon Turn service on or off.
systemctl daemon-reload chkconfig daemon --add Create or modify configuration.

Targets table

systemd Target SysV Runlevel Notes
runlevel0.target, poweroff.target 0 Shut down the system.
runlevel1.target, rescue.target 1, s, single Single user mode.
runlevel2.target, runlevel4.target, multi-user.target 2, 4 User-defined/Site-specific runlevels. By default, identical to 3.
runlevel3.target, multi-user.target 3 Multi-user, non-graphical. Users can usually login via multiple consoles or via the network.
runlevel5.target, graphical.target 5 Multi-user, graphical. Usually has all the services of runlevel 3 plus a graphical login.
runlevel6.target, reboot.target 6 Reboot
emergency.target emergency Emergency shell