Difference between revisions of "Init/Rosetta"

From ArchWiki
Jump to: navigation, search
m (Undo revision 312086 by Namarrgon (talk) when used as a verb, "shut down" is correct. when used as a noun, "shutdown" or "shut-down" is correct)
(added merge proposal with openrc)
Line 4: Line 4:
 
[[ja:Init Rosetta]]
 
[[ja:Init Rosetta]]
 
[[ru:Init Rosetta]]
 
[[ru:Init Rosetta]]
 +
{{Merge|Openrc|This page is now deprecated, users who like the old SysVInit method should probably stick to OpenRC.}}
 
This article draws a parallel between the old [[SysVinit]] and the current [[systemd]] initialization.
 
This article draws a parallel between the old [[SysVinit]] and the current [[systemd]] initialization.
  

Revision as of 22:39, 21 July 2014

Merge-arrows-2.pngThis article or section is a candidate for merging with Openrc.Merge-arrows-2.png

Notes: This page is now deprecated, users who like the old SysVInit method should probably stick to OpenRC. (Discuss in Talk: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 .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 Shut down 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