Skip to main content
+44 7575 472931[email protected]
HostaccentKnowledge BaseHosting, websites, SEO, and growth

How to Check Running Services in Linux (and Spot Failures)

How to check running services in Linux: run systemctl list-units --type=service --state=running, then find failed units and what starts at boot. Updated 2026.

VPSBeginner Guide
Check running services in Linux with systemctl, terminal listing running, failed and boot-enabled units on a 2026 VPS

A site throws a 502 or a nightly backup never lands, and the first question is always the same: is the service actually running? This guide shows you how to check running services in Linux on any systemd distribution, from a one-line list to the status block that explains why something died.

Quick Answer: Run systemctl list-units --type=service --state=running to list every service running right now. Use systemctl status nginx to inspect one service, systemctl --failed to see what crashed, and systemctl list-unit-files --type=service --state=enabled to see what starts at boot. As of October 2026, these commands work the same on Ubuntu, Debian, AlmaLinux, Rocky and RHEL.

Last verified: October 2026, Ubuntu 24.04 LTS (systemd 255), Ubuntu 26.04 LTS (systemd 259), upstream systemd 261

We resolve 20 to 30 client server issues every day, and on most of them this is the first thing our team checks, so these are the steps we actually type.

How to Check Running Services in Linux with systemctl

The fastest way is systemctl list-units --type=service --state=running. It prints only the services up right now, without the sockets, mounts and timers that plain systemctl mixes in.

bash
systemctl list-units --type=service --state=running

The five columns are UNIT (the name), LOAD (whether systemd parsed the unit file), ACTIVE (high-level state), SUB (detailed state) and DESCRIPTION.

Which filter do you actually need?

Plain systemctl list-units --type=service shows active services, and active includes one-shot jobs that ran once and finished. This is how the filters map to real questions:

What you want to knowCommandWhat it includes
Which services are running right nowsystemctl list-units --type=service --state=runningSUB = running only
Which services are activesystemctl list-units --type=servicerunning plus exited one-shot jobs
Every loaded service, even stopped onessystemctl list-units --type=service --alladds inactive (dead) units
Which services crashedsystemctl --failedACTIVE = failed
Which services start at bootsystemctl list-unit-files --type=service --state=enabledunit files, not live state

As of October 2026, the reliable way to list running services on Ubuntu 24.04, Ubuntu 26.04, Debian and RHEL-family servers is systemctl list-units --type=service --state=running, because every one of them uses systemd. Adding --no-pager --plain --no-legend strips the header and footer, and piping that into wc -l gives you a count. A lean web VPS typically runs 20 to 40 services.

bash
systemctl list-units --type=service --state=running --no-pager --plain --no-legend | wc -l

Pro Tip: Unit names differ by distro. Apache is apache2 on Ubuntu but httpd on AlmaLinux, and Ubuntu 24.04 calls PHP-FPM php8.3-fpm. Run systemctl list-units --type=service --all | grep -i php before deciding something isn't installed.

Skip service --status-all on modern servers

Older guides still recommend service --status-all. It only reads SysV scripts in /etc/init.d, so it misses native systemd units, and that support is ending: systemd 260 removed SysV service script support in March 2026. Ubuntu 26.04 LTS, which ships systemd 259, is the last Ubuntu LTS that keeps the compatibility layer. Every flag in this guide is documented in the official systemctl manual.

Reading systemctl status Output Line by Line

The list tells you that something is wrong; systemctl status tells you what. It's the service status command you'll use most.

text
$ systemctl status nginx
● nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; preset: enabled)
     Active: active (running) since Mon 2026-10-26 09:14:02 UTC; 3 days ago
   Main PID: 1182 (nginx)
      Tasks: 3 (limit: 4613)
     Memory: 6.1M (peak: 9.8M)
     CGroup: /system.slice/nginx.service
  • Loaded shows the unit file path and whether it's enabled at boot. Newer systemd prints preset: where older tutorials show vendor preset:, so a different-looking line on your server is normal.
  • Active is the line that matters. active (running) is healthy, inactive (dead) means stopped, failed means it crashed, and activating (auto-restart) means systemd is retrying.
  • Main PID and Memory confirm a real process exists. A worker that grows from 6 MB to 600 MB in a day deserves a closer look.

On systemd 255 and newer, an active (exited) state is not an error. It means a one-shot unit ran its job and finished, which is normal for boot tasks like systemd-sysctl or a firewall loader. Treat a long-running daemon such as nginx, MariaDB or PHP-FPM as down only when its ACTIVE column reads inactive or failed, or its SUB column shows anything other than running.

Why does a service say "active (running)" when my site is still down?

Running doesn't mean working. Three checks catch most of these cases:

  1. Restart loops. Run systemctl show php8.3-fpm -p NRestarts. Anything above 0 means systemd keeps restarting it, often because a pool runs out of memory; Nginx and PHP-FPM performance tuning covers sizing pools.
  2. Listening ports. Run sudo ss -ltnp | grep -E ':80|:443' to confirm the process actually holds the port.
  3. A failed reload. If systemctl reload nginx hits a config error, the old workers keep running, so status stays green while your new config never took effect. Test first with sudo nginx -t, as the nginx documentation recommends.

When status isn't enough, read the full history with journalctl -u nginx -n 50 --no-pager, or narrow it with --since "1 hour ago".

Professional help available

Still working through this server issue?

Send the symptoms, error output, and what you have already tried. We can work with Hostaccent services or infrastructure hosted with another provider.

Request server helpHow server support worksHosted elsewhere? One-time paid support is available after scope and price confirmation.

Check If a Service Is Enabled, Not Just Running

Running describes right now; enabled describes the next reboot. That gap causes more "it worked yesterday" tickets than almost anything else on a VPS.

bash
systemctl is-enabled mariadb
systemctl list-unit-files --type=service --state=enabled

The answer is one of a handful of states. enabled starts at boot, disabled doesn't, static has no install section because another unit pulls it in, and masked is linked to /dev/null so it can't start at all, even by hand.

Across the 4,000+ sites Hostaccent has migrated since 2016, the step people most often get wrong sits right here. They start MariaDB or PHP-FPM by hand on the new server, see active (running), and move on. Weeks later a kernel update triggers a reboot and the service simply doesn't come back. One command closes the gap:

bash
sudo systemctl enable --now mariadb

To check if a service is enabled in Linux, run systemctl is-enabled <name>; it prints one word and exits with code 0 when the unit will start at boot. Pair it with systemctl is-active <name>, which exits 0 when the service is running now. Checking both takes under 2 seconds and catches the services that would vanish after the next reboot.

Two Ubuntu surprises: since Ubuntu 22.10, OpenSSH is socket-activated, so ssh.service can show inactive (dead) until the first login while ssh.socket does the listening. And many scheduled jobs now live in systemd timers; systemctl list-timers shows when each last ran. For crontab problems, see fixing a cron job that isn't running.

The Known-Good Baseline: Spot What Stopped Before Your Users Do

The real skill is knowing which services should be running, so you notice the moment one disappears. We call this the Known-Good Baseline, a 60-second habit our team uses on servers we look after.

Step 1: snapshot the server while it's healthy.

bash
systemctl list-units --type=service --state=running --no-legend --plain \
  | awk '{print $1}' | sort > ~/services-baseline.txt

Step 2: diff against it after any reboot, deploy or incident.

bash
systemctl list-units --type=service --state=running --no-legend --plain \
  | awk '{print $1}' | sort | diff ~/services-baseline.txt -

Lines starting with < were running before and aren't now. Lines starting with > are new and deserve a second look.

Step 3: list failed services. Run systemctl --failed, read the cause with the journalctl manual as your reference, and after fixing it run sudo systemctl reset-failed so old failures don't hide new ones.

A 99.99% uptime guarantee, like the one Hostaccent offers, allows about 4.4 minutes of downtime a month. That figure is about the server staying reachable. A crashed PHP-FPM pool on a perfectly healthy machine still breaks your site, which is why a 60-second service baseline matters as much as any hardware promise.

Pro Tip: Save a fresh baseline after every planned change, such as installing Redis or removing Apache. A baseline that's three months old produces noisy diffs, and noisy diffs get ignored.

Once the habit sticks, automate it with server monitoring on a VPS, and use the Linux VPS security baseline for Ubuntu 24.04 to decide which services to switch off. Remember that apps add units too: docker.service once you install Docker on an Ubuntu VPS, or pm2-root.service after you deploy a Node.js app with PM2 and Nginx.

The short version

  • --state=running lists what's up now; plain list-units also shows exited one-shot jobs.
  • systemctl status plus journalctl -u explains why something stopped.
  • Check is-enabled as well as is-active, especially after a migration.
  • Keep a known-good baseline and diff it after every reboot.

Your Next Step: A VPS Where Every Service Is Yours to Inspect

Now that you know how to check running services in Linux, from a quick list-units to a baseline diff, you can spot a stopped service in under a minute. The next question is where those services live. You could keep patching a server you can't fully see into, or start on one where every unit is yours to inspect. Hostaccent's VPS gives you full root access, free 30 Gbps DDoS protection and 24/7 help from our own engineers on Standard, $12.00/mo, renewing at that same price. One honest caveat: no cPanel or Plesk licence is included, so budget for one separately if you want a panel. When you're ready, start on the Standard VPS plan at $12.00/mo.

Frequently Asked Questions

What is the command to check running services in Linux?

On any systemd distribution, run systemctl list-units --type=service --state=running. It lists only services whose SUB state is running, which is usually what people mean by a running service. For a single service, use systemctl status <name>, or systemctl is-active <name> inside scripts because it returns a clean exit code. On the rare system without systemd, such as an Alpine container, use rc-status for OpenRC or check the process directly with pgrep -a.

What is the difference between active and running in systemctl?

ACTIVE is systemd's high-level state and SUB is the detail underneath it. A service can be active (running), meaning a process is alive right now, or active (exited), meaning a one-shot job finished successfully and stopped. That's why plain systemctl list-units --type=service shows more entries than the running filter does. For a daemon like nginx, MariaDB or PHP-FPM you want running. For setup scripts that run once at boot, exited is completely normal.

How do I list failed services in systemd?

Run systemctl --failed or the longer systemctl list-units --type=service --state=failed. Both show units whose ACTIVE state is failed, meaning the process crashed, exited with an error code, or hit its start timeout. Next, run systemctl status <name> and journalctl -u <name> -n 50 to read the cause. After fixing it, clear the record with sudo systemctl reset-failed, so the next time you list failed services you only see fresh problems.

Does the service status command still work on modern Linux?

Mostly, yes. On systemd distributions, service nginx status is a thin wrapper that hands the job to systemctl status nginx, so single-service checks keep working. The weak spot is service --status-all, which only reads SysV scripts in /etc/init.d and misses native systemd units. With systemd 260 dropping SysV script support in 2026, it's worth switching to systemctl now, especially in scripts you plan to reuse for years.

Is it safe to disable a service I don't recognise?

Not until you know what depends on it. Run systemctl cat <name> to read the unit file and its description, then systemctl list-dependencies --reverse <name> to see what pulls it in. If nothing important needs it, sudo systemctl disable --now <name> stops it and keeps it off at boot. Save mask for services you must block completely. Our team always snapshots the server first, because recovering from a bad disable that kills SSH can take hours.

Professional help available

Still not resolved? Let a server specialist take it from here.

Send the symptoms, error output, and what you have already tried. We can work with Hostaccent services or infrastructure hosted with another provider.

  • No hosting transfer required
  • Scope confirmed before paid work
  • No changes before your approval
Request server helpHow server support worksHosted elsewhere? One-time paid support is available after scope and price confirmation.
Reviewed by

Hostaccent Editorial Team

Reviewed for technical accuracy and clarity before publication.

Last updated

Nov 9, 2026

HostAccent Editorial Team publishes practical hosting guides, operations checklists, and SEO-focused tutorials for businesses building international web presence.

Discussion

Have a question or tip about this topic? Share it below — your comment will appear after review.

Your email stays private and is only used for moderation.

Write for the Community

Have a tutorial, tip, or insight to share? Get published on the Hostaccent Blog with your name, bio, and website link.

Become a Contributor

Need a faster setup for this workflow?