ArmSoM
← All stories

How to Diagnose an Embedded Linux Restart Loop Without Losing the First Error

A service that restarts automatically can fill a log with secondary errors while the original cause scrolls away. On an ArmSoM appliance, preserve the first failed invocation and its configuration before raising restart limits.

ArmSoM Sige5 single-board computer product photo

ArmSoM Sige5 single-board computer · ArmSoM

Read one complete invocation from the beginning

Select a single boot in the service journal and locate the first process start, exit status and first application error. Compare those with the service's restart delay and rate-limit settings. On an isolated test unit, reproduce one launch with the normal service user, working directory and environment. A manual start as a different user can mask a missing permission or configuration file.

If a failure begins after an update, compare the service unit and any drop-in settings as well as the application binary. A changed working directory can break a relative path with no code change.

If a dependency appears late in boot, add bounded retries at the appropriate layer and make the waiting state visible. Retest a permanent configuration error as well as a delayed dependency.

Reference material

ArmSoM Sige5 hardware documentation

systemd service types and readiness

Related ArmSoM guide

Migrating a systemd service from Raspberry Pi to ArmSoM

Explore ArmSoM Sige5