Difference between revisions of "Init Rosetta"

From ArchWiki
Jump to: navigation, search
m (added ja)
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Category:Процесс загрузки]]
+
{{Lowercase title}}
[[en:Init Rosetta]]
+
[[Category:Boot process]]
 +
[[es:Init Rosetta]]
 +
[[ja:Init Rosetta]]
 +
[[ru:Init Rosetta]]
 +
This article draws a parallel between the old [[SysVinit]] and the current [[systemd]] initialization.
 +
 
 +
Keep in mind that you can always omit the {{ic|.service}} and {{ic|.target}} extensions, especially if you're temporarily editing the [[kernel parameters]] when bootloader menu shows up. Easier to remember, as well.
 +
 
 +
=== Commands ===
 +
 
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! scope="col"| Команда Init   
+
! scope="col"| SysVinit
! scope="col"| Команда Systemd   
+
! scope="col"| systemd
! scope="col"| Комментарий   
+
! scope="col"| Information
 
|-
 
|-
| align="center"| rc.d {start | stop | restart...} daemon 
+
| align="center"|  rc.d {start | stop | restart} daemon 
| align="left"| systemctl {start | stop | restart...} daemon.service 
+
| align="left"|  systemctl {start | stop | restart} daemon.service 
| align="center"|Сменить состояние сервиса
+
| align="center"| Change service state.
 
|-
 
|-
| align="center"|rc.d list
+
| align="center"|  rc.d list 
| align="left"| systemctl list-unit-files --type=service
+
| align="left"|  systemctl list-unit-files --type=service 
| align="center"|Список сервисов
+
| align="center"| List Services.
 
|-
 
|-
| align="center"|chkconfig daemon {on | off}
+
| align="center"|  chkconfig daemon {on | off} 
| align="left"| systemctl {enable | disable} daemon.service
+
| align="left"|  systemctl {enable | disable} daemon.service 
| align="center"|Включить или выключить сервис
+
| align="center"| Turn service on or off.
 
|-
 
|-
| align="center"| chkconfig daemon --add
+
| align="center"|  chkconfig daemon --add 
| align="left"| systemctl daemon-reload
+
| align="left"|  systemctl daemon-reload 
| align="center"| Используется при создании или изменении конфигураций/скриптов 
+
| align="center"| Use when you create or modify configs/scripts.
 
|}
 
|}
  
=== Таблица уровней запуска и их аналогов в Systemd===
+
=== Targets table ===
 +
 
 
{| border="1"
 
{| border="1"
!Уровень запуска SysV!!systemd Target!!Замечания
+
! SysV Runlevel !! systemd Target !! Notes
 
|-
 
|-
| 0 || runlevel0.target, poweroff.target || Выключить систему.
+
| 0 || runlevel0.target, poweroff.target || Halt the system.
 
|-
 
|-
| 1, s, single || runlevel1.target, rescue.target || Однопользовательский уровень запуска.
+
| 1, s, single || runlevel1.target, rescue.target || Single user mode.
 
|-
 
|-
| 2, 4 || runlevel2.target, runlevel4.target, multi-user.target || Уровень запуска определенный пользователем/специфичный для сайта. По умолчанию идентичен уровню запуска 3.
+
| 2, 4 || runlevel2.target, runlevel4.target, multi-user.target || User-defined/Site-specific runlevels. By default, identical to 3.
 
|-
 
|-
| 3 || runlevel3.target, multi-user.target || Многопользовательский, не графический уровень запуска. Пользователи, как правило, входят с помощью множества консолей или через сеть.
+
| 3 || runlevel3.target, multi-user.target || Multi-user, non-graphical. Users can usually login via multiple consoles or via the network.
 
|-
 
|-
| 5 || runlevel5.target, graphical.target || Многопользовательский, графический уровень запуска. Обычно включает в себя все сервисы 3 уровня, плюс графический вход в систему.
+
| 5 || runlevel5.target, graphical.target || Multi-user, graphical. Usually has all the services of runlevel 3 plus a graphical login.
 
|-
 
|-
| 6 || runlevel6.target, reboot.target || Перезагрузка.
+
| 6 || runlevel6.target, reboot.target || Reboot
 
|-
 
|-
 
| emergency || emergency.target || Emergency shell
 
| emergency || emergency.target || Emergency shell
 
|-
 
|-
 
|}
 
|}

Revision as of 07:40, 21 August 2013

This article draws a parallel between the old SysVinit and the current systemd initialization.

Keep in mind that you can always omit the .service and .target extensions, especially if you're temporarily editing the kernel parameters when bootloader menu shows up. Easier to remember, as well.

Commands

SysVinit systemd Information
 rc.d {start | stop | restart} daemon   systemctl {start | stop | restart} daemon.service  Change service state.
 rc.d list   systemctl list-unit-files --type=service  List Services.
 chkconfig daemon {on | off}   systemctl {enable | disable} daemon.service  Turn service on or off.
 chkconfig daemon --add   systemctl daemon-reload  Use when you create or modify configs/scripts.

Targets table

SysV Runlevel systemd Target Notes
0 runlevel0.target, poweroff.target Halt the system.
1, s, single runlevel1.target, rescue.target Single user mode.
2, 4 runlevel2.target, runlevel4.target, multi-user.target 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.
5 runlevel5.target, graphical.target Multi-user, graphical. Usually has all the services of runlevel 3 plus a graphical login.
6 runlevel6.target, reboot.target Reboot
emergency emergency.target Emergency shell