Skip to content

change: chkopenrc.sh to use rc-status for checking of running services#226

Merged
ravindu644 merged 1 commit into
ravindu644:mainfrom
abd3-13:upstream
Jul 4, 2026
Merged

change: chkopenrc.sh to use rc-status for checking of running services#226
ravindu644 merged 1 commit into
ravindu644:mainfrom
abd3-13:upstream

Conversation

@abd3-13

@abd3-13 abd3-13 commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

This PR improves chkopenrc.sh by changing how running OpenRC services are detected.

Changes

  • Added a new _all_running() helper that uses rc-status -f ini to retrieve running services directly.
  • Updated the --running option to use rc-status as the preferred method.
  • Added a fallback to the previous rc-service <service> status approach if rc-status is unavailable or fails.

@ravindu644 ravindu644 merged commit da001f9 into ravindu644:main Jul 4, 2026
2 checks passed
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.

2 participants