Add 2.1.2 files configuration
This commit is contained in:
parent
fdd101fb60
commit
65dc900149
10
scripts/build/2.1.2/etc/default/sphinxsearch
Normal file
10
scripts/build/2.1.2/etc/default/sphinxsearch
Normal file
@ -0,0 +1,10 @@
|
||||
#
|
||||
# Settings for the sphinxsearch searchd daemon
|
||||
# Please read /usr/share/doc/sphinxsearch/README.Debian for details.
|
||||
#
|
||||
|
||||
# Should sphinxsearch run automatically on startup? (default: no)
|
||||
# Before doing this you might want to modify /etc/sphinxsearch/sphinx.conf
|
||||
# so that it works for you.
|
||||
START=yes
|
||||
|
1
scripts/build/2.1.2/etc/init.d/sphinxsearch
Normal file
1
scripts/build/2.1.2/etc/init.d/sphinxsearch
Normal file
@ -0,0 +1 @@
|
||||
/lib/init/upstart-job
|
34
scripts/build/2.1.2/etc/init/sphinxsearch.conf
Normal file
34
scripts/build/2.1.2/etc/init/sphinxsearch.conf
Normal file
@ -0,0 +1,34 @@
|
||||
# SphinxSearch Service
|
||||
|
||||
description "SphinxSearch Daemon"
|
||||
author "Andrey Aksyonoff <shodan@sphinxsearch.com>"
|
||||
|
||||
start on (net-device-up
|
||||
and local-filesystems
|
||||
and runlevel [2345])
|
||||
stop on runlevel [016]
|
||||
|
||||
respawn
|
||||
respawn limit 10 35
|
||||
|
||||
# The default of 5 seconds is too low if we have rt indices and have to flush them
|
||||
kill timeout 30
|
||||
|
||||
env DEFAULTFILE="/etc/default/sphinxsearch"
|
||||
pre-start script
|
||||
if [ -f "$DEFAULTFILE" ]; then
|
||||
. "$DEFAULTFILE"
|
||||
fi
|
||||
if [ "z$START" != "zyes" ]; then
|
||||
stop
|
||||
logger "To enable sphinxsearch, edit /etc/default/sphinxsearch and set START=yes"
|
||||
exit 0
|
||||
fi
|
||||
if [ ! -f /etc/sphinxsearch/sphinx.conf ]; then
|
||||
logger "Please create an /etc/sphinxsearch/sphinx.conf configuration file."
|
||||
logger "Templates are in the /etc/sphinxsearch/ directory."
|
||||
exit 0
|
||||
fi
|
||||
end script
|
||||
|
||||
exec /usr/local/sphinx/bin/searchd --nodetach --config /etc/sphinxsearch/sphinx.conf
|
12
scripts/build/2.1.2/etc/logrotate/searchd
Normal file
12
scripts/build/2.1.2/etc/logrotate/searchd
Normal file
@ -0,0 +1,12 @@
|
||||
/dbs/sphinxlog/query.log /dbs/sphinxlog/searchd.log {
|
||||
missingok
|
||||
notifempty
|
||||
weekly
|
||||
rotate 5
|
||||
compress
|
||||
delaycompress
|
||||
create 640 root root
|
||||
postrotate
|
||||
killall -SIGUSR1 searchd
|
||||
endscript
|
||||
}
|
Loading…
Reference in New Issue
Block a user