<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=Redhat%3ARunlevel_control</id>
	<title>Redhat:Runlevel control - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=Redhat%3ARunlevel_control"/>
	<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Redhat:Runlevel_control&amp;action=history"/>
	<updated>2026-05-04T20:19:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Redhat:Runlevel_control&amp;diff=3619&amp;oldid=prev</id>
		<title>Michael: Created page with &quot;== Runlevel Control ==  While the run levels are generally defined, the specific services that are started up in each run level can be controlled.  Each run level has a direco...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Redhat:Runlevel_control&amp;diff=3619&amp;oldid=prev"/>
		<updated>2013-09-06T13:17:19Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Runlevel Control ==  While the run levels are generally defined, the specific services that are started up in each run level can be controlled.  Each run level has a direco...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Runlevel Control ==&lt;br /&gt;
&lt;br /&gt;
While the run levels are generally defined, the specific services that are started up in each run level can be controlled.&lt;br /&gt;
&lt;br /&gt;
Each run level has a direcotry which defined the services to be started. As an example for run level 3, the directory /etc/rc3.d defines the services.&lt;br /&gt;
&lt;br /&gt;
When the system is started a command is run which will locate the run levels directory.  The loop defined in the /etc/rc.d/rc file will start each script in turn.  The files are named K&amp;lt;number&amp;gt;&amp;lt;service&amp;gt;  and S&amp;lt;number&amp;gt;&amp;lt;service&amp;gt;.  The services are started in order starting with the K files and then the S files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
exec /etc/rc.d/rc $RUNLEVEL&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==  Stop a script booting for a run level ==&lt;br /&gt;
&lt;br /&gt;
There are two ways to change which services are booted for a run level.&lt;br /&gt;
&lt;br /&gt;
=== Manual changes ===&lt;br /&gt;
&lt;br /&gt;
Rename the service file in /etc/rc.d/rc&amp;lt;runlevel&amp;gt;  from S* or K* to something else.&lt;br /&gt;
&lt;br /&gt;
=== Command Line Changes ===&lt;br /&gt;
&lt;br /&gt;
Use the chkconfig command to check and change the run levels &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
chkconfig --list postfix&lt;br /&gt;
postfix 0:off 1:off 2:on 3:on 4:on 5:on 6:off&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
chkconfig &amp;lt;service&amp;gt; on #turn a service on for run levels 2-5&lt;br /&gt;
chkconfig &amp;lt;service&amp;gt; off #turn a service off for run levels 2-5&lt;br /&gt;
chkconfig  --level 4 &amp;lt;service&amp;gt; on #turn a service on for run level 4&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael</name></author>
	</entry>
</feed>