$ 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".