Close Menu
DPC Virtual Tips
    Read More

    How to Troubleshoot Packet Drops on an ESXi Host

    August 16, 2026

    SlurmDBD Is Down: What Continues Working and What Does Not

    August 15, 2026

    How to Investigate Jobs Stuck in COMPLETING State on Slurm

    August 14, 2026
    • Home
    • About Us
    • Contact
    • Cookie Policy
    • Comment Policy
    • Privacy Policy
    • Terms of Use
    • Disclaimer
    Monday, August 24
    DPC Virtual Tips
    • Home
    • Operating Systems
    • PowerFlex
    • HPC
    • Virtualization
    • About the Author
    • About Us
    • Contact
    DPC Virtual Tips
    Home » Handling Target System State on RHEL 8
    Operating Systems

    Handling Target System State on RHEL 8

    DaniloBy DaniloJuly 24, 2025Updated:August 1, 2026No Comments4 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    systemd target RHEL 8
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Handling Target System State on RHEL 8 shows how to control the boot process of RHEL 8 and define the state you want your system to boot into.

    First and foremost: What is “systemd”?

    Serving as a system and service manager for Linux operating systems, the systemd software suite provides tools and services for controlling, reporting, and system initialization. Key features include:

    • Parallel start of system services during boot
    • On-demand activation of daemons
    • Dependency-based service control logic

    The basic object that systemd manages is a systemd unit, which represents system resources and services. A systemd unit consists of a name, type, and a configuration file that defines and manages a particular task. You can use unit files to configure system behavior. See the following examples of various systemd unit types:

    • Service: Controls and manages individual system services
    • Target: Represents a group of units that define system states
    • Device: Manages hardware devices and their availability
    • Mount: Handles file system mounting
    • Timer: Schedules tasks to run at specific intervals

    Target Unit Files

    Targets in systemd are groups of related units that act as synchronization points during the start of your system. Target unit files, which end with the .target file extension, represent the systemd targets. The purpose of target units is to group various systemd units through a chain of dependencies.

    Note: Targets are similar to runlevels from the old SysV init system (such as runlevel 3 or 5), but offer more flexibility. Each target group has a set of services and configurations.

    Here are the most common targets in RHEL:

    TargetDescriptionOld Runlevel
    graphical.targetFull graphical multi-user system (GUI)Runlevel 5
    multi-user.targetMulti-user mode without GUI (CLI only)Runlevel 3
    rescue.targetSingle-user mode with basic servicesRunlevel 1
    emergency.targetMinimal system, no services, no networkRunlevel 0
    poweroff.targetShuts down the systemRunlevel 0
    reboot.targetReboots the systemRunlevel 6
    default.targetThe default target the system boots into–

    Changing the Default Target to boot into

    1- What is the default Target?
    We can use the following command to check what the default target is:

    systemctl get-default

    2- List the currently loaded targets:

    systemctl list-units --type target

    3- As we can see, our system is using the “graphical.target” as a default target.
    If we need, for example, to define a new default target (multi-user.target), we need to execute the following command:

    systemctl set-default multi-user.target

    4- Check again what the default target is – look that the default target has been changed successfully to “multi-user.tager”:

    systemctl get-default

    5- Reboot the system!
    After rebooting the system, since the target “graphical.target” was not the default target, the graphical interface was not loaded – the “multi-user.target” does not provide the graphical interface:

    6- If you want to switch to the “graphical.target”, we can do that with the following command:

    systemctl isolate graphical.target

    Doing it, the target will change immediately – In this example, we are on “multi-user.target” and switch to the “graphical.target” in real time, without rebooting the system:

    Note: However, even using the “graphical.target”, if you reboot the system, the default target will be used to boot the system!

    Rescue Mode

    You can boot into rescue mode, which provides a single-user environment for troubleshooting or repair if the system cannot reach a later target and the regular booting process fails. In rescue mode, the system attempts to mount all local file systems and start certain essential system services, but it does not activate network interfaces.

    Note: To access rescue mode, you need root access.

    To enter the rescue mode, change the current target in the current session:

    systemctl rescue

    After working on rescue mode, you can….

    systemctl default

    …. to boot into default target mode:

    Note: rescue mode is not the same thing as emergency mode!

    Emergency Mode

    As a system administrator, you can select a non-default target at boot time to troubleshoot the boot process. Changing the target at boot time affects only a single boot. You can boot to emergency mode, which provides the most minimal environment possible.

    Note: In emergency mode, the system mounts the root file system only for reading, does not attempt to mount any other local file systems, does not activate network interfaces, and only starts a few essential services!

    Procedure:

    1- Reboot the system, and interrupt the boot loader menu countdown by pressing any key except the Enter key, which would initiate a normal boot. Press the “e” key to edit the current entry:

    2- Move to the end of the line that starts with linux and press Ctrl+E to jump to the end of the line:

    3- To choose an alternate boot target, append the systemd.unit= parameter to the end of the line that starts with linux.
    We need to type “systemd.unit=emergency.target”:

    4- Press Ctrl+X to boot with these settings:

    That’s it for now 🙂

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleHow to Install RHEL 8 on Lab
    Next Article Resetting the root password on RHEL 8
    Danilo

    Infrastructure Engineer with experience in Virtualization, Linux, Windows Server and learning automation using Python. DPC Virtual Tips was created to share practical tutorials, lab experiences and troubleshooting guides focused on enterprise infrastructure technologies.

    Related Posts

    Linux Server Has Free Memory but Is Swapping: Why?

    August 13, 2026

    How to Determine Whether Packet Loss Is Local or Network Related on Linux

    August 12, 2026

    How to Investigate TCP Retransmissions on Linux

    August 11, 2026

    Comments are closed.

    Search
    Categories
    • HPC (12)
    • Operating Systems (85)
    • PowerFlex (22)
    • Virtualization (130)
    Read More
    Virtualization

    How to Troubleshoot Packet Drops on an ESXi Host

    By DaniloAugust 16, 20260
    HPC

    SlurmDBD Is Down: What Continues Working and What Does Not

    By DaniloAugust 15, 20260
    HPC

    How to Investigate Jobs Stuck in COMPLETING State on Slurm

    By DaniloAugust 14, 20260
    Operating Systems

    Linux Server Has Free Memory but Is Swapping: Why?

    By DaniloAugust 13, 20260
    Operating Systems

    How to Determine Whether Packet Loss Is Local or Network Related on Linux

    By DaniloAugust 12, 20260
    Latest Posts

    How to Troubleshoot Packet Drops on an ESXi Host

    August 16, 2026

    SlurmDBD Is Down: What Continues Working and What Does Not

    August 15, 2026

    How to Investigate Jobs Stuck in COMPLETING State on Slurm

    August 14, 2026
    Images from Gallery
    hpc main commands
    linux commands
    install rock linux
    lustre fs
    shell scripting
    vSAN Trace Files
    Categories
    • HPC
    • Operating Systems
    • PowerFlex
    • Virtualization
    • Home
    • About Us
    • Contact
    • Cookie Policy
    • Comment Policy
    • Privacy Policy
    • Terms of Use
    • Disclaimer
    Copyright © 2026, DPC Virtual Tips. All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.

    We use cookies to ensure your best experience on our website. If you continue using our website, we'll assume you agree to our cookie policy