1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141
|
Author: <monty@inaugust.com>, modified by Radu Spineanu
Description: Changed default locations to match debian locations.
--- a/sphinx.conf.in
+++ b/sphinx.conf.in
@@ -270,7 +270,7 @@
# shell command to invoke xmlpipe stream producer
# mandatory
#
- # xmlpipe_command = cat @CONFDIR@/test.xml
+ # xmlpipe_command = cat @localstatedir@/test.xml
# xmlpipe2 field declaration
# multi-value, optional, default is empty
@@ -328,7 +328,7 @@
# index files path and file name, without extension
# mandatory, path must be writable, extensions will be auto-appended
- path = @CONFDIR@/data/test1
+ path = @localstatedir@/data/test1
# document attribute values (docinfo) storage mode
# optional, default is 'extern'
@@ -363,13 +363,13 @@
# optional, default is empty
# contents are plain text, charset_table and stemming are both applied
#
- # stopwords = @CONFDIR@/data/stopwords.txt
+ # stopwords = @localstatedir@/data/stopwords.txt
# wordforms file, in "mapfrom > mapto" plain text format
# optional, default is empty
#
- # wordforms = @CONFDIR@/data/wordforms.txt
+ # wordforms = @localstatedir@/data/wordforms.txt
# tokenizing exceptions file
@@ -378,7 +378,7 @@
# plain text, case sensitive, space insensitive in map-from part
# one "Map Several Words => ToASingleOne" entry per line
#
- # exceptions = @CONFDIR@/data/exceptions.txt
+ # exceptions = @localstatedir@/data/exceptions.txt
# minimum indexed word length
@@ -577,7 +577,7 @@
# and may then be overridden in this index definition
index test1stemmed : test1
{
- path = @CONFDIR@/data/test1stemmed
+ path = @localstatedir@/data/test1stemmed
morphology = stem_en
}
@@ -631,7 +631,7 @@
# index files path and file name, without extension
# mandatory, path must be writable, extensions will be auto-appended
- path = @CONFDIR@/data/rt
+ path = @localstatedir@/data/rt
# RAM chunk size limit
# RT index will keep at most this much data in RAM, then flush to disk
@@ -721,11 +721,11 @@
# log file, searchd run info is logged here
# optional, default is 'searchd.log'
- log = @CONFDIR@/log/searchd.log
+ log = /var/log/sphinxsearch/searchd.log
# query log file, all search queries are logged here
# optional, default is empty (do not log queries)
- query_log = @CONFDIR@/log/query.log
+ query_log = /var/log/sphinxsearch/query.log
# client read timeout, seconds
# optional, default is 5
@@ -741,7 +741,7 @@
# PID file, searchd process ID file name
# mandatory
- pid_file = @CONFDIR@/log/searchd.pid
+ pid_file = /var/run/sphinxsearch/searchd.pid
# max amount of matches the daemon ever keeps in RAM, per-index
# WARNING, THERE'S ALSO PER-QUERY LIMIT, SEE SetLimits() API CALL
@@ -787,7 +787,7 @@
# searchd will (try to) log crashed query to 'crash_log_path.PID' file
# optional, default is empty (do not create crash logs)
#
- # crash_log_path = @CONFDIR@/log/crash
+ # crash_log_path = /var/log/sphinxsearch/crash
# max allowed per-query filter count
@@ -852,7 +852,7 @@
# optional, default is build-time configured data directory
#
# binlog_path = # disable logging
- # binlog_path = @CONFDIR@/data # binlog.001 etc will be created there
+ # binlog_path = @localstatedir@/data # binlog.001 etc will be created there
# binlog flush/sync mode
--- a/sphinx-min.conf.in
+++ b/sphinx-min.conf.in
@@ -26,7 +26,7 @@
index test1
{
source = src1
- path = @CONFDIR@/data/test1
+ path = @localstatedir@/data/test1
docinfo = extern
charset_type = sbcs
}
@@ -37,7 +37,7 @@
type = rt
rt_mem_limit = 32M
- path = @CONFDIR@/data/testrt
+ path = @localstatedir@/data/testrt
charset_type = utf-8
rt_field = title
@@ -56,11 +56,11 @@
{
listen = 9312
listen = 9306:mysql41
- log = @CONFDIR@/log/searchd.log
- query_log = @CONFDIR@/log/query.log
+ log = /var/log/sphinxsearch/searchd.log
+ query_log = /var/log/sphinxsearch/query.log
read_timeout = 5
max_children = 30
- pid_file = @CONFDIR@/log/searchd.pid
+ pid_file = /var/run/sphinxsearch/searchd.pid
max_matches = 1000
seamless_rotate = 1
preopen_indexes = 1
|