PanNote Engineering Docs

Systemd Unit Reliability & Journald Storage Caps

Last updated: 2026-08-28

Upstream RPM unit files frequently default to Restart=no. When an unattended background daemon exits due to transient OOM or socket exhaustion, it remains offline until manual intervention unless overridden via a drop-in snippet.

1. Drop-In Override Pattern

# /etc/systemd/system/example.service.d/restart.conf
[Service]
Restart=on-failure
RestartSec=2s

2. Bounding Journald Disk Footprint

# /etc/systemd/journald.conf.d/size.conf
[Journal]
SystemMaxUse=100M
MaxFileSec=7day