diff options
| author | Dennis Fink | 2026-09-27 13:14:07 +0200 |
|---|---|---|
| committer | Dennis Fink | 2026-09-27 13:20:47 +0200 |
| commit | 555d50bfd10b1ac983aec17cf5b3cdf3a9cb99d7 (patch) | |
| tree | 38539bd205d8b7434b8c02c8482a9a4c0f694268 /.gitignore | |
| parent | 142af72ebc9e1c2151101d6c3318ee48fdf00a87 (diff) | |
| download | prometheus-pacman-exporter-555d50bfd10b1ac983aec17cf5b3cdf3a9cb99d7.tar.gz prometheus-pacman-exporter-555d50bfd10b1ac983aec17cf5b3cdf3a9cb99d7.zip | |
fix(commands): classify command failures for retries
Allow command invocations to define which child exit codes are
considered successful, including checkupdates exit status 2 when no
updates are available.
Classify unexpected child command failures as exporter exit status 1 so
systemd treats them as runtime failures eligible for retry. Keep exit
status 2 for CLI usage errors, which are configuration problems and
should not be retried.
Update the systemd service with RestartPreventExitStatus=2 so only
retryable runtime failures trigger the configured restart policy.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions
