1,234
edits
Changes
→Investigation 4: How do we Manage Runlevels?
===Investigation 4: How do we Manage Runlevels?===
{{Admon/note|Use fedora2centos2 and centos3|Perform these steps in the '''fedora2''' both of these virtual machinemachines.}} The runlevel command is now deprecated in Fedora, and will likely be deprecated in RHEL/CentOS at some point as well, but for now this is what the industry is using.
<ol>
<li>Issue the following Linux command:
<ul>
<li><code>systemctl list-units --type=targetrunlevel</code></li>
</ul>
</li>
<li>Note the target labelled graphicaldifference in output between centos2 and centos3. Now trace the chain of links starting at /etc/systemd/system/default.target - what's it ultimately pointing to?</li> <li>Issue You can use the following commands init command to switch change the default mode (also known as target, formerly current runlevel). See a list of runlevels [https: <ul> <li><code>rm /etc/systemd/system/defaultwww.centos.target<org/code><docs/li> <li><code>ln -s 5/libhtml/systemd5.2/systemInstallation_Guide/multis2-userinit-boot-shutdown-rl.target /etc/systemd/system/defaulthtml here].target</code></li> </ul> <li>Restart your fedora2 VMChange the current runlevel in centos2 to 3. What happened? What happensafter your reboot?</li> <li>Log into your regular user accountChange the default runlevel on centos2 to 3.What happens now after you reboot?</li>
<li>Issue the following Linux command:
<ul>
<li>What happens?</li>
<li>Log-off your graphical system. You should return to your shell prompt.</li>
<li>Issue Change the following commands: <ul> <li><code>rm /etc/systemd/system/defaultrunlevel for centos2 back to 5 and reboot to make sure it works.target</code></li> <li><code>ln -s /lib/systemd/system/graphical.target /etc/systemd/system/default.target</code></li> </ul> </li> <li>Reboot your fedora2 VM. What Happens?</li>
</ol>