I got a called 'solr'. I want to start /usr/local/etc/rc.d/solr first and then I want to start a /usr/local/etc/rc.d/solr_exporter script I wrote.

The solr_exporter service needs to start AFTER solr does.

The original solr rc.d service script that comes with the package appears to not make use of daemon at all.

If I bring up the jail, solr starts but the solr_exporter script fails because it tries to start it up immediately afterwards but since solr isn't ready yet, it fails.

Any way to fix the timing of this? The way jails start services seems.. weird.. I tried adding: until sockstat -4 | grep :8983; do sleep 1; done in the start section for solr_exporter but then it just hangs.

Not sure what to do here. Any FreeBSD jail experts know how to solve a situation like this?

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.bsd.cafe/users/pertho/statuses/114223236060521783 on your instance and quote it. (Note that quoting is not supported in Mastodon.)