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.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
administration:starting_and_stopping_solr [2018/06/05 19:06] – [Linux Method] demiankatz | administration:starting_and_stopping_solr [2018/08/01 20:12] – [Linux Method] demiankatz | ||
---|---|---|---|
Line 34: | Line 34: | ||
</ | </ | ||
- | This is warning of some default settings that could impact the performance of your Solr instance. On most Linux platforms, this can be addressed by editing the / | + | This is warning of some default settings that could impact the performance of your Solr instance. On some Linux platforms, this can be addressed by editing the / |
< | < | ||
Line 46: | Line 46: | ||
It may be necessary to log out of your terminal session and log back in for these settings to take effect. | It may be necessary to log out of your terminal session and log back in for these settings to take effect. | ||
+ | |||
+ | On Linux platforms using systemd, you may be able to work around the problem with a systemd file like this example (in a file like / | ||
+ | |||
+ | < | ||
+ | Description=VuFind Starter | ||
+ | After=network.target httpd.service | ||
+ | |||
+ | [Service] | ||
+ | Type=forking | ||
+ | ExecStart=/ | ||
+ | PIDFile=/ | ||
+ | User=vufind-user | ||
+ | ExecStop=/ | ||
+ | SuccessExitStatus=0 | ||
+ | LimitNOFILE=65000 | ||
+ | LimitNPROC=65000 | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target | ||
+ | </ | ||
+ | |||
+ | (Obviously the / | ||
+ | |||
+ | Once this is in place, you can use "sudo service vufind start" and "sudo service vufind stop" to start and stop the process, and appropriate limits will be applied. | ||
==== Windows Method ==== | ==== Windows Method ==== | ||
Line 141: | Line 165: | ||
:!: Important: These instructions were written for VuFind 3.0 or later, when the Solr script was changed to solr.sh instead of vufind.sh; if running VuFind 2.x or earlier, you should replace " | :!: Important: These instructions were written for VuFind 3.0 or later, when the Solr script was changed to solr.sh instead of vufind.sh; if running VuFind 2.x or earlier, you should replace " | ||
- | :!: If you need to run VuFind with non-default settings, you may wish to add some lines to export environment variables in this script, or else source a script containing all of your environment settings prior to running " | + | :!: If you need to run VuFind with non-default settings, you may wish to add some lines to export environment variables in this script, or else source a script containing all of your environment settings prior to running " |
+ | |||
+ | :!: Newer versions of Solr do not like to be run by the root user; you may need to either add " | ||
< | < | ||
#!/bin/sh | #!/bin/sh | ||
### BEGIN INIT INFO | ### BEGIN INIT INFO | ||
+ | # Provides: vufind | ||
+ | # Required-Start: | ||
+ | # Required-Stop: | ||
# Default-Start: | # Default-Start: | ||
# Default-Stop: | # Default-Stop: |
administration/starting_and_stopping_solr.txt · Last modified: 2023/10/24 13:47 by demiankatz