Skip to content

Instantly share code, notes, and snippets.

View Daniel-KM's full-sized avatar

Daniel-KM

  • France
  • 02:14 (UTC +02:00)
View GitHub Profile
@Daniel-KM
Daniel-KM / solr.service
Last active April 10, 2024 13:54 — forked from gadelkareem/solr.service
systemd service file for Apache SOLR
# put this file in /etc/systemd/system/ as root
# below paths assume solr installed in /opt/solr, SOLR_PID_DIR is /data
# and that all configuration exists in /etc/default/solr.in.sh which is the case if previously installed as an init.d service
# change port in pid file if differs
# note that it is configured to auto restart solr if it fails (Restart=on-faliure) and that's the motivation indeed :)
# to switch from systemv (init.d) to systemd, do the following after creating this file:
# sudo systemctl daemon-reload
# sudo service solr stop # if already running
# sudo systemctl enable solr
# systemctl start solr