About Features Downloads Getting Started Documentation Events Support GitHub

Love VuFind®? Consider becoming a financial supporter. Your support helps build a better VuFind®!

Site Tools


Warning: This page has not been updated in over over a year and may be outdated or deprecated.
administration:starting_and_stopping_solr

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
administration:starting_and_stopping_solr [2023/03/08 18:45] demiankatzadministration:starting_and_stopping_solr [2023/03/10 11:45] – Remove VuFind 2.x script example (now obsolete). demiankatz
Line 229: Line 229:
  
   * create new file called /etc/systemd/system/vufind.service, with this code:   * create new file called /etc/systemd/system/vufind.service, with this code:
- 
-In VuFind 2.x, the contents of the file should be as follows: 
- 
-<code> 
-[Unit] 
-Description=VuFind Starter 
-After=network.target 
- 
-[Service] 
-Type=forking 
-ExecStart=/bin/sh --login -c '/usr/local/vufind2/vufind.sh start' 
-PIDFile=/var/run/vufind.pid 
-User=solr 
-ExecStop=/bin/sh --login -c "/usr/local/vufind2/vufind.sh stop" 
- 
-# Java responds to a SIGTERM by returning with exit code 143 which leads to "failed" exit in the systemd-Logs 
-SuccessExitStatus=143 
- 
-[Install] 
-WantedBy=multi-user.target 
-</code> 
- 
-In VuFind 7.0 and later, the contents of the file should be as follows. It will work with the official VuFind 3 deb package (tested on Ubuntu 16.04). For compatibility with VuFind 3.0 through 6.0, simply change "solr-8983.pid" to "solr-8080.pid" to reflect a different default port number. 
  
 <code> <code>
Line 268: Line 245:
 WantedBy=multi-user.target WantedBy=multi-user.target
 </code> </code>
 +
 +The above example should work for VuFind 7.0 and later using the official VuFind deb package (this has been tested on Ubuntu). For compatibility with VuFind 3.0 through 6.0, simply change "solr-8983.pid" to "solr-8080.pid" to reflect a different default Solr port number. For older versions of VuFind, a different script is needed; click the "Old revisions" link below to find historical documentation.
  
 Be sure to adjust paths in the code above to match your local system. Be sure to adjust paths in the code above to match your local system.
administration/starting_and_stopping_solr.txt · Last modified: 2023/10/24 13:47 by demiankatz