Skip to content

[OpenRC] Try to resolve the service before calling status#376

Open
jnummelin wants to merge 1 commit intokardianos:masterfrom
jnummelin:fix-openrc-status
Open

[OpenRC] Try to resolve the service before calling status#376
jnummelin wants to merge 1 commit intokardianos:masterfrom
jnummelin:fix-openrc-status

Conversation

@jnummelin
Copy link
Copy Markdown

This is needed as calling rc-service non-existing-svc status will exit with status 1 instead of the expected 2. So the only way to really detect the ErrNotInstalled case is by trying to first resolve the service init script. rc-service --resolve xyz will exit 1 if the service cannot be resolved.

…ed or not

Signed-off-by: Jussi Nummelin <jussi.nummelin@gmail.com>
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