systemctl --status should return 0 if unit exit code is in SuccessExitStatus
Open
Nobody has claimed this yet.
RFE 🎁
systemctl
- Dominant language
- C
- Stars
- 16.7k
- Forks
- 4.7k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 140
Description
When a oneshot unit exits with error code 2 and that SuccessExitStatus contains 2, systemctl status should ideally return 0.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the case with a oneshot unit that exits with status 2 and declares SuccessExitStatus=2, then trace how systemctl status determines its return code. Done means status returns 0 when the unit's exit code is listed as successful, while preserving existing behavior for other exit codes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, linux
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100