aboutsummaryrefslogtreecommitdiffstats
path: root/script/restart-solr
diff options
context:
space:
mode:
Diffstat (limited to 'script/restart-solr')
-rwxr-xr-xscript/restart-solr12
1 files changed, 12 insertions, 0 deletions
diff --git a/script/restart-solr b/script/restart-solr
new file mode 100755
index 000000000..bf7b9194d
--- /dev/null
+++ b/script/restart-solr
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+# Stops and restarts the Solr (Lucene) search engine daemon. Redirects it
+# to log.
+
+cd `dirname $0`
+cd ..
+rake solr:stop
+nohup rake solr:start >log/solr.log 2>log/solr.err.log
+
+
+