mhitza opened a new pull request #428: URL: https://github.com/apache/solr/pull/428
# Description * Update the installation script to configure a systemd service instead of a SysV service. * Update the documentation with the replacement systemd (systemctl) commands, and notes. This is a port of a previous PR https://github.com/apache/lucene-solr/pull/1435, with the addition of a bug fix. # Tests I manually tested the changes in a debian/buster + openjdk-11-jre VM, with the solr-8.11.0.tgz archive. I manually repackaged the archive to include the solr/bin/systemd/solr.service file, and then invoked the modified installer script and passed along the updated archive. After fixing the substitution issue I got a running setup. ``` id: ‘solr’: no such user Creating new user: solr Adding system user `solr' (UID 108) ... Adding new group `solr' (GID 114) ... Adding new user solr' (UID 108) with group solr' ... Creating home directory `/var/solr' ... Extracting solr-8.11.0.tgz to /opt tar: solr-8.11.0/bin/install_solr_service.sh: time stamp 2021-11-21 01:29:47 is 421.338911707 s in the future tar: solr-8.11.0/bin/systemd/solr.service: time stamp 2021-11-21 01:30:12 is 446.3380425 s in the future Installing symlink /opt/solr -> /opt/solr-8.11.0 ... Installing /etc/systemd/system/solr.service ... Installing /etc/default/solr.in.sh ... Created symlink /etc/systemd/system/multi-user.target.wants/solr.service → /etc/systemd/system/solr.service. Service solr installed. Customize Solr startup configuration in /etc/default/solr.in.sh ``` # Checklist Please review the following and check all that apply: - [ ] I have reviewed the guidelines for [How to Contribute](https://wiki.apache.org/solr/HowToContribute) and my code conforms to the standards described there to the best of my ability. - [ ] I have created a Jira issue and added the issue ID to my pull request title. - [ ] I have given Solr maintainers [access](https://help.github.com/en/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork) to contribute to my PR branch. (optional but recommended) - [ ] I have developed this patch against the `main` branch. - [ ] I have run `./gradlew check`. - [ ] I have added tests for my changes. - [ ] I have added documentation for the [Reference Guide](https://github.com/apache/solr/tree/main/solr/solr-ref-guide) -- 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-unsubscr...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org