Skip to content

rc-status: Do not consider service crashed upon EACCES on pidfile - #1111

Open
kya8 wants to merge 1 commit into
OpenRC:masterfrom
kya8:fix-crashed-status
Open

kya8 wants to merge 1 commit into
OpenRC:masterfrom
kya8:fix-crashed-status

Conversation

@kya8

@kya8 kya8 commented Nov 10, 2026

Copy link
Copy Markdown

When the calling user does not have permission to read the pidfile of a running service, rc_service_daemons_crashed(service) returns true and errno is set to EACCES. rc-status --crashed does not check for EACCESS, thus prints the service as crashed.

Add check for EACCES in the --crashed path. This is also consistent with other code paths that check for crashed service, such as the service_crashed binary called by the default status command.

Bug: #215

When the calling user does not have permission to read the pidfile of a
running service, `rc_service_daemons_crashed(service)` returns true and
errno is set to EACCES. `rc-status --crashed` does not check for
EACCESS, thus prints the service as crashed.

Add check for EACCES in the `--crashed` path. This is also consistent
with other code paths that check for crashed service, such as the
`service_crashed` binary called by the default `status` command.

Bug: OpenRC#215
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant