How to Trim Down Linux Startup: Disable Unnecessary Systemd Services
This guide explains why many Linux distributions start unused services at boot, shows how to list and inspect them with systemd tools, and provides step‑by‑step methods to safely mask or disable specific services to speed up system startup.
Viewing Startup Items
Most Linux distributions launch numerous services at boot, many of which you never use (e.g., Bluetooth, Avahi, ModemManager, pppd‑dns). Systemd offers tools to view and control these startup processes.
Traditional init scripts can be inspected via /etc/init.d, but systemd uses its own representation. Useful commands include:
systemctl list-unit-files --type=service systemctl list-dependencies multi-user.target systemctl status <em>service_name</em>To disable a service like Bluetooth, you can mask it so it never starts: systemctl mask bluetooth.service After making changes, verify with:
Which Services Can Be Disabled?
Determine which services are safe to disable based on your needs. Below are examples of services and brief notes:
accounts-daemon.service : Potential security risk; often masked.
avahi-daemon.service : Zero‑configuration networking; usually disabled.
brltty.service : Provides Braille device support.
debug-shell.service : Exposes an unprotected root shell; disable unless needed.
ModemManager.service : Manages mobile broadband; disable if no modem.
pppd-dns.service : Legacy dial‑up DNS service; unnecessary for most users.
rtkit-daemon.service : Real‑time kernel scheduler; keep if required.
whoopsie.service : Ubuntu crash‑reporting; safe to disable.
wpa_supplicant.service : Needed only for Wi‑Fi connections.
What Happens During System Boot?
Systemd provides commands to debug the boot process. Use journalctl -b -1 to view the previous boot’s logs, -b -2 for the one before, etc.
Filtering helps focus on relevant entries; for example, filtering by PID 1 demonstrates how to isolate specific processes.
The command systemd-analyze blame lists services ordered by the time they took to start, helping identify bottlenecks.
via: https://www.linux.com/learn/cleaning-your-linux-startup-process Author: David Both Translator: penghuster Proofreader: wxy
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.
