Skip to main content
DARKPC.NET

Audit Service Startup After a Workstation Install

Compare enabled, running and failed systemd units and gather evidence before changing startup configuration.

Difficulty Beginner

Prerequisites

Use a Kali workstation or disposable VM running systemd. Run these inventory commands from the workstation you administer. No settings change during this exercise.

Collect observations

systemctl --failed --no-pager
systemctl list-unit-files --type=service --state=enabled --no-pager
systemctl list-units --type=service --state=running --no-pager

A unit file enabled for a target is different from a service that is running now. Some services are launched through an activation mechanism or a dependency. A failed unit needs context, such as whether hardware was absent or whether another service replaced its task.

Read a unit and its current-boot record

Choose one exact local unit name from the output and replace EXAMPLE.service in both commands.

systemctl status EXAMPLE.service
journalctl -b -u EXAMPLE.service --no-pager -n 40

Look at the current state, startup time and first relevant error. Some journal lines require permissions on the host. If a unit is unfamiliar, look up its package and documented purpose before changing it.

Troubleshooting and practice

If systemctl reports the system was not booted with systemd, confirm whether you are in a container, chroot or alternate init environment. If a service shows active (exited), understand its unit type before assuming it failed. Compare one configured boot-time unit with one running on demand. Preserve network, accessibility and remote-access services unless you have an approved replacement and recovery path. Redact account or host details from shared journal excerpts.

References and related reading