Running /sbin/entrypoint.sh start-and-exit causes the healthcheck to fail
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 549
- Forks
- 277
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 2
Description
$ docker compose exec splunk-so cat ../container_artifact/splunk-container.state
started
$ docker compose exec splunk-so /sbin/entrypoint.sh start-and-exit
...
$ docker compose exec splunk-so cat ../container_artifact/splunk-container.state
starting
I prefer to use exec splunk-so /sbin/entrypoint.sh start-and-exit rather than restart splunk-so when I make changes to /tmp/defaults/ because there is less downtime from a splunkd restart than from restarting the whole container.
This issue is a problem because /sbin/checkstate.sh reports that the container is unhealthy unless the state is "running" or "started".
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
Start by reading /sbin/entrypoint.sh, focusing on the start-and-exit path, then inspect /sbin/checkstate.sh to understand which state values pass the healthcheck. Reproduce the commands from the issue and verify that start-and-exit leaves the container in a state accepted as healthy.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, docker-compose, shell
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100