Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To identify the init system running right now, inspect process ID 1: run cat /proc/1/comm and readlink /proc/1/exe. For a direct systemd runtime check, test whether /run/systemd/system exists. These checks show the process visible in your current environment; they do not by themselves tell you which init packages are installed or which init will be selected on a later boot.

Check the init process running now

Linux assigns process ID 1 (PID 1) to the first process started during boot. When systemd runs as the first process, it acts as the init system. The upstream systemd manual describes this PID 1 role.

  1. Open a terminal in the Linux environment you want to check.

  2. Run cat /proc/1/comm. This prints the process name for PID 1. If it prints systemd, systemd is running as PID 1 in the process namespace you can see.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  3. Run readlink /proc/1/exe to see the executable linked to that process, when the proc filesystem exposes it. This can help identify an implementation when the process name is generic.

cat /proc/1/comm
readlink /proc/1/exe

Check specifically whether systemd is active

Debian’s Init guide recommends checking for the runtime directory /run/systemd/system as a way to determine whether systemd is running:

test -d /run/systemd/system && echo systemd || echo "systemd marker not found"

If the directory exists, that is a positive systemd runtime indicator. If it does not, the check has not found that marker; use the PID 1 checks rather than treating the result alone as a complete identification of another init system.

Distinguish the running init from the boot selection

The live PID 1 and the init selected through the on-disk boot link answer different questions. To inspect the link, run:

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
ls -l /sbin/init
readlink -f /sbin/init

The link can point to different init implementations, and its layout varies between distributions. Debian’s guide documents these checks, but a link target describes configuration on disk—not necessarily the process currently running. Conversely, the current PID 1 does not establish what a future boot will select.

Interpret generic names and systemctl results

PID 1 is named init

The name init alone may not identify which implementation is running. Check /proc/1/exe, compare it with the resolved /sbin/init target, and consult the distribution’s documentation if the executable identity remains unclear.

systemctl is available

systemctl is the tool for introspecting and controlling the systemd manager, as described in the upstream systemctl manual. A successful interaction can corroborate that a systemd manager is reachable. The command being installed or found on $PATH, by itself, does not prove systemd is the active PID 1.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Account for containers and process namespaces

Inside a container or another restricted process namespace, PID 1 may be the init-like process visible inside that environment, not the host’s init. Run these commands in the environment whose process you want to identify, and do not report a container’s PID 1 as evidence of the host’s init system.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Quick decision guide

  • Need the init running in this environment? Check /proc/1/comm and, when available, /proc/1/exe.
  • Need a systemd-specific runtime check? Test for /run/systemd/system.
  • Need to inspect the boot link? Check and resolve /sbin/init, then treat it as boot configuration rather than proof of the live process.
  • Need to know what software is installed? These runtime checks do not answer that; do not infer installed packages from PID 1 or from the boot link.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.