How to Identify and Disable Unnecessary Systemd Services to Speed Up Linux Boot
This guide explains how Linux distributions start many default services, how to use Systemd tools to view and analyze boot processes, and provides step‑by‑step instructions for safely disabling or masking unneeded services to improve startup performance.
Why Linux Starts Unnecessary Services
Most Linux distributions launch a variety of services at boot, including Bluetooth, Avahi, ModemManager, and others that many users never use.
Systemd Tools for Inspecting Startup
Systemd offers commands to list and manage these services. While traditional /etc/init.d scripts can be inspected, Systemd uses its own mechanisms.
Disabling Unwanted Services
To stop a service like Bluetooth from starting, you can mask it with Systemd. After masking, verify the change with the appropriate command.
Masking does not remove the service entirely; it prevents it from being started automatically while keeping it available for manual use if needed.
Services You Can Safely Disable
accounts-daemon.service : Potential security risk; can be masked.
avahi-daemon.service : Zero‑configuration network discovery; often unnecessary.
brltty.service : Provides Braille device support; not needed for most users.
debug-shell.service : Exposes an unprotected root shell; should be disabled.
ModemManager.service : Manages mobile broadband; disable if no modem is present.
pppd-dns.service : Legacy dial‑up DNS service; safe to disable.
rtkit-daemon.service : Real‑time kernel scheduler; keep if required.
whoopsie.service : Ubuntu error reporting; can be turned off.
wpa_supplicant.service : Needed only when using Wi‑Fi.
Understanding What Happens During Boot
Systemd provides commands to review previous boots. Use journalctl -b -1 for the last boot, journalctl -b -2 for the one before, etc. Filters help focus on specific processes.
To identify time‑consuming services, run systemd-analyze blame, which lists services ordered by their startup duration.
Source: linux.com
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
MaGe Linux Operations
Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
