Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: shut down solr when sv stop solr is called #144

Merged
merged 1 commit into from
Oct 1, 2024
Merged

Conversation

q0rban
Copy link
Contributor

@q0rban q0rban commented Oct 1, 2024

No description provided.

@q0rban q0rban closed this Oct 1, 2024
@q0rban q0rban reopened this Oct 1, 2024
@q0rban q0rban merged commit 08b4d55 into main Oct 1, 2024
3 checks passed
@q0rban q0rban deleted the solr-shutdown branch October 1, 2024 15:42
Copy link
Contributor

@apotek apotek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this. I hope to get a chance to try this out very soon.

@@ -69,6 +69,11 @@ for tags in $($GETTAGS "${FILTER}"); do
cp "${dir}/run" "${imgdir}/run"
chmod 755 "${imgdir}/run"
RUN="RUN mkdir -p /etc/service/${SERVICE}\nCOPY run /etc/service/${SERVICE}/run"
if [ -e "${dir}/finish" ]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems it would be much more legible if this $dir variable were named $services_dir or $service_dir. But that's a refactoring not for the faint of heart at this point.

@@ -0,0 +1,3 @@
#!/bin/sh

/opt/solr/bin/solr stop -p ${SOLR_PORT:-8983}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will be interesting to see if this will also stop the embedded zoo keeper service when run in solrcloud mode. I believe it will since I think the embedded zookeeper service is truly embedded (ie, not a separate process) from the solr server.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

look forward to your testing results! Thank you @apotek

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