<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://wikiold.home.tartarefr.eu/index.php?action=history&amp;feed=atom&amp;title=SysVinit_to_Systemd_Cheatsheet</id>
	<title>SysVinit to Systemd Cheatsheet - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://wikiold.home.tartarefr.eu/index.php?action=history&amp;feed=atom&amp;title=SysVinit_to_Systemd_Cheatsheet"/>
	<link rel="alternate" type="text/html" href="https://wikiold.home.tartarefr.eu/index.php?title=SysVinit_to_Systemd_Cheatsheet&amp;action=history"/>
	<updated>2026-07-07T12:17:07Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wikiold.home.tartarefr.eu/index.php?title=SysVinit_to_Systemd_Cheatsheet&amp;diff=1961&amp;oldid=prev</id>
		<title>Didier : Page créée avec « This is a document to help system administrators who need to understand what commands in systemd replace their old workflow in sysvinit.   If you want general information ... »</title>
		<link rel="alternate" type="text/html" href="https://wikiold.home.tartarefr.eu/index.php?title=SysVinit_to_Systemd_Cheatsheet&amp;diff=1961&amp;oldid=prev"/>
		<updated>2013-08-23T16:58:20Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « This is a document to help system administrators who need to understand what commands in systemd replace their old workflow in sysvinit.   If you want general information ... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This is a document to help system administrators who need to understand what commands in systemd replace their old workflow in sysvinit.   If you want general information on systemd, refer to [[Admin/Systemd| Systemd]].&lt;br /&gt;
&lt;br /&gt;
{{admon/tip | Note on &amp;#039;service&amp;#039; and &amp;#039;chkconfig&amp;#039; commands | The &amp;#039;service&amp;#039; and &amp;#039;chkconfig&amp;#039; commands will mostly continue to work as expected in the systemd world, this guide is how to use the native &lt;br /&gt;
systemctl replacements. }}&lt;br /&gt;
&lt;br /&gt;
== Services ==&lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot; &lt;br /&gt;
!Sysvinit Command!!Systemd Command!!Notes&lt;br /&gt;
|-&lt;br /&gt;
| service frobozz start || systemctl start frobozz.service || Used to start a service (not reboot persistent)&lt;br /&gt;
|-&lt;br /&gt;
| service frobozz stop || systemctl stop frobozz.service || Used to stop a service (not reboot persistent)&lt;br /&gt;
|-&lt;br /&gt;
| service frobozz restart || systemctl restart frobozz.service  || Used to stop and then start a service&lt;br /&gt;
|-&lt;br /&gt;
| service frobozz reload || systemctl reload frobozz.service  || When supported, reloads the config file without interrupting pending operations.&lt;br /&gt;
|-&lt;br /&gt;
| service frobozz condrestart || systemctl condrestart frobozz.service  || Restarts if the service is already running.&lt;br /&gt;
|-&lt;br /&gt;
| service frobozz status || systemctl status frobozz.service || Tells whether a service is currently running.&lt;br /&gt;
|-&lt;br /&gt;
| ls /etc/rc.d/init.d/ ||  systemctl list-unit-files --type=service (preferred)&amp;lt;br /&amp;gt;ls /lib/systemd/system/*.service /etc/systemd/system/*.service|| Used to list the services that can be started or stopped &amp;lt;br /&amp;gt; Used to list all the services and other units&lt;br /&gt;
|-&lt;br /&gt;
| chkconfig frobozz on || systemctl enable frobozz.service || Turn the service on, for start at next boot, or other trigger.&lt;br /&gt;
|-&lt;br /&gt;
| chkconfig frobozz off || systemctl disable frobozz.service || Turn the service off for the next reboot, or any other trigger.&lt;br /&gt;
|-&lt;br /&gt;
| chkconfig frobozz || systemctl is-enabled frobozz.service || Used to check whether a service is configured to start or not in the current environment.&lt;br /&gt;
|-&lt;br /&gt;
| chkconfig --list || systemctl list-unit-files --type=service(preferred)&amp;lt;br/&amp;gt;ls /etc/systemd/system/*.wants/ || Print a table of services that lists which runlevels each is configured on or off&lt;br /&gt;
|-&lt;br /&gt;
| chkconfig frobozz --list || ls /etc/systemd/system/*.wants/frobozz.service || Used to list what levels this service is configured on or off&lt;br /&gt;
|-&lt;br /&gt;
| chkconfig frobozz --add || systemctl daemon-reload || Used when you create a new service file or modify any configuration&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note that all /sbin/service and /sbin/chkconfig lines listed above continue to work on systemd, and will be translated to native equivalents as necessary. The only exception is chkconfig --list. &lt;br /&gt;
&lt;br /&gt;
{{admon/warning|Additional commands|In SysVinit, services can define arbitrary commands. Examples would be &amp;#039;&amp;#039;&amp;#039;service iptables panic&amp;#039;&amp;#039;&amp;#039;, or &amp;#039;&amp;#039;&amp;#039;service httpd graceful&amp;#039;&amp;#039;&amp;#039;. Native systemd services do not have this ability.&lt;br /&gt;
Any service that defines an additional command in this way would need to define some other, service-specific, way to accomplish this task when writing a native systemd service definition.&lt;br /&gt;
&lt;br /&gt;
Check the package-specific release notes for any services that may have done this.}}&lt;br /&gt;
&lt;br /&gt;
== Runlevels/targets ==&lt;br /&gt;
&lt;br /&gt;
Systemd has a concept of &amp;#039;&amp;#039;targets&amp;#039;&amp;#039; which serve a similar purpose as runlevels but act a little different.  Each &amp;#039;&amp;#039;target&amp;#039;&amp;#039; is named instead of numbered and is intended to serve a specific purpose.  Some &amp;#039;&amp;#039;targets&amp;#039;&amp;#039; are implemented by inheriting all of the services of another &amp;#039;&amp;#039;target&amp;#039;&amp;#039; and adding additional services to it.  There are systemd &amp;#039;&amp;#039;target&amp;#039;&amp;#039;s that mimic the common sysvinit runlevels so you can still switch &amp;#039;&amp;#039;target&amp;#039;&amp;#039;s using the familiar &amp;lt;code&amp;gt;telinit RUNLEVEL&amp;lt;/code&amp;gt; command.  The runlevels that are assigned a specific purpose on vanilla Fedora installs; 0, 1, 3, 5, and 6; have a 1:1 mapping with a specific systemd &amp;#039;&amp;#039;target&amp;#039;&amp;#039;.  Unfortunately, there&amp;#039;s no good way to do the same for the user-defined runlevels like 2 and 4.  If you make use of those it is suggested that you make a new named systemd &amp;#039;&amp;#039;target&amp;#039;&amp;#039; as &amp;lt;code&amp;gt;/etc/systemd/system/$YOURTARGET&amp;lt;/code&amp;gt; that takes one of the existing runlevels as a base (you can look at &amp;lt;code&amp;gt;/lib/systemd/system/graphical.target&amp;lt;/code&amp;gt; as an example), make a directory &amp;lt;code&amp;gt;/etc/systemd/system/$YOURTARGET.wants&amp;lt;/code&amp;gt;, and then symlink the additional services that you want to enable into that directory.  (The service unit files that you symlink live in &amp;lt;code&amp;gt;/lib/systemd/system&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot; &lt;br /&gt;
!Sysvinit Runlevel!!Systemd Target!!Notes&lt;br /&gt;
|-&lt;br /&gt;
| 0 || runlevel0.target, poweroff.target || Halt the system.&lt;br /&gt;
|-&lt;br /&gt;
| 1, s, single || runlevel1.target, rescue.target || Single user mode.&lt;br /&gt;
|-&lt;br /&gt;
| 2, 4 || runlevel2.target, runlevel4.target, multi-user.target || User-defined/Site-specific runlevels. By default, identical to 3.&lt;br /&gt;
|-&lt;br /&gt;
| 3 || runlevel3.target, multi-user.target || Multi-user, non-graphical.  Users can usually login via multiple consoles or via the network.&lt;br /&gt;
|-&lt;br /&gt;
| 5 || runlevel5.target, graphical.target || Multi-user, graphical.  Usually has all the services of runlevel 3 plus a graphical login.&lt;br /&gt;
|-&lt;br /&gt;
| 6 || runlevel6.target, reboot.target || Reboot&lt;br /&gt;
|-&lt;br /&gt;
| emergency || emergency.target || Emergency shell&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Changing runlevels:&lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
!Sysvinit Command!!Systemd Command!!Notes&lt;br /&gt;
|-&lt;br /&gt;
| telinit 3 || systemctl isolate multi-user.target (OR systemctl isolate runlevel3.target OR telinit 3) || Change to multi-user run level.&lt;br /&gt;
|-&lt;br /&gt;
| sed s/^id:.*:initdefault:/id:3:initdefault:/ || ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target || Set to use multi-user runlevel on next reboot.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Didier</name></author>
	</entry>
</feed>