You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by GitBox <gi...@apache.org> on 2021/10/06 10:46:59 UTC

[GitHub] [lucene-solr] janhoy commented on a change in pull request #1435: SOLR-14410: Switch from SysV init script to systemd service file

janhoy commented on a change in pull request #1435:
URL: https://github.com/apache/lucene-solr/pull/1435#discussion_r723118782



##########
File path: solr/bin/install_solr_service.sh
##########
@@ -229,21 +229,21 @@ if [ -z "$SOLR_UPGRADE" ]; then
 fi
 
 if [ ! "$SOLR_UPGRADE" = "YES" ]; then
-  if [ -f "/etc/init.d/$SOLR_SERVICE" ]; then
-    print_usage "/etc/init.d/$SOLR_SERVICE already exists! Perhaps Solr is already setup as a service on this host? To upgrade Solr use the -f option."
+  if [ -f "/etc/systemd/system/$SOLR_SERVICE.service" ]; then

Review comment:
       Should the updated script also look for the old `/etc/init.d/solr` service (could be installed for 8.x when trying to install 9.0), and abort, or offer to uninstall the old init.d service script?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org