-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added example Debian init script.
- Loading branch information
Jacinto de Guzmán
committed
Dec 18, 2008
1 parent
383f2f1
commit 30ff0dd
Showing
3 changed files
with
91 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
* Remove dependency on setuptools | ||
* Support for facets | ||
* Use worker threads in couchdb-solr2-index to process individual updates. | ||
* Improve data structure used to communicate updated documents. | ||
* Optional caching of search query results |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#! /bin/sh -e | ||
|
||
### BEGIN INIT INFO | ||
# Provides: couchdb-solr2-update | ||
# Required-Start: $remote_fs $net | ||
# Required-Stop: $remote_fs $network | ||
# Default-Start: 2 3 4 5 | ||
# Default-Stop: 0 1 6 | ||
# Short-Description: Start FTI updater for CouchDB | ||
# Description: Start FTI updater for CouchDB database server | ||
### END INIT INFO | ||
|
||
# EDIT ME! | ||
DAEMON=/usr/local/python/bin/couchdb-solr2-update | ||
LOG=/usr/local/couchdb/var/log/couchdb/update.log | ||
USER=couchdb | ||
PID=/usr/local/couchdb/var/run/couchdb-solr2-update.pid | ||
CONFIG=/usr/local/couchdb/etc/couchdb/couchdb-solr2-update.ini | ||
NAME=couchdb-solr2-update | ||
|
||
case "$1" in | ||
start) | ||
echo -n "Starting $NAME: " | ||
start-stop-daemon --start --chuid $USER --pidfile $PID --startas $DAEMON -- -l $LOG -p $PID -a $CONFIG | ||
echo $NAME | ||
;; | ||
stop) | ||
echo -n "Stop $NAME: " | ||
start-stop-daemon --stop --pidfile $PID | ||
echo $NAME | ||
;; | ||
restart|force-reload) | ||
echo -n "Restarting $NAME: " | ||
start-stop-daemon --stop --pidfile $PID --oknodo | ||
start-stop-daemon --start --chuid $USER --pidfile $PID --startas $DAEMON -- -l $LOG -p $PID -a $CONFIG | ||
echo $NAME | ||
;; | ||
*) | ||
echo "Usage: $0 {start|stop|restart|force-reload}" >&2 | ||
exit 1 | ||
esac |