1
Author: <monty@inaugust.com>, modified by Radu Spineanu
2
Description: Changed default locations to match debian locations.
6
# shell command to invoke xmlpipe stream producer
9
- # xmlpipe_command = cat @CONFDIR@/test.xml
10
+ # xmlpipe_command = cat @localstatedir@/test.xml
12
# xmlpipe2 field declaration
13
# multi-value, optional, default is empty
16
# index files path and file name, without extension
17
# mandatory, path must be writable, extensions will be auto-appended
18
- path = @CONFDIR@/data/test1
19
+ path = @localstatedir@/data/test1
21
# document attribute values (docinfo) storage mode
22
# optional, default is 'extern'
24
# optional, default is empty
25
# contents are plain text, charset_table and stemming are both applied
27
- # stopwords = @CONFDIR@/data/stopwords.txt
28
+ # stopwords = @localstatedir@/data/stopwords.txt
31
# wordforms file, in "mapfrom > mapto" plain text format
32
# optional, default is empty
34
- # wordforms = @CONFDIR@/data/wordforms.txt
35
+ # wordforms = @localstatedir@/data/wordforms.txt
38
# tokenizing exceptions file
40
# plain text, case sensitive, space insensitive in map-from part
41
# one "Map Several Words => ToASingleOne" entry per line
43
- # exceptions = @CONFDIR@/data/exceptions.txt
44
+ # exceptions = @localstatedir@/data/exceptions.txt
47
# minimum indexed word length
49
# and may then be overridden in this index definition
50
index test1stemmed : test1
52
- path = @CONFDIR@/data/test1stemmed
53
+ path = @localstatedir@/data/test1stemmed
59
# index files path and file name, without extension
60
# mandatory, path must be writable, extensions will be auto-appended
61
- path = @CONFDIR@/data/rt
62
+ path = @localstatedir@/data/rt
64
# RAM chunk size limit
65
# RT index will keep at most this much data in RAM, then flush to disk
68
# log file, searchd run info is logged here
69
# optional, default is 'searchd.log'
70
- log = @CONFDIR@/log/searchd.log
71
+ log = /var/log/sphinxsearch/searchd.log
73
# query log file, all search queries are logged here
74
# optional, default is empty (do not log queries)
75
- query_log = @CONFDIR@/log/query.log
76
+ query_log = /var/log/sphinxsearch/query.log
78
# client read timeout, seconds
79
# optional, default is 5
82
# PID file, searchd process ID file name
84
- pid_file = @CONFDIR@/log/searchd.pid
85
+ pid_file = /var/run/sphinxsearch/searchd.pid
87
# max amount of matches the daemon ever keeps in RAM, per-index
88
# WARNING, THERE'S ALSO PER-QUERY LIMIT, SEE SetLimits() API CALL
90
# searchd will (try to) log crashed query to 'crash_log_path.PID' file
91
# optional, default is empty (do not create crash logs)
93
- # crash_log_path = @CONFDIR@/log/crash
94
+ # crash_log_path = /var/log/sphinxsearch/crash
97
# max allowed per-query filter count
99
# optional, default is build-time configured data directory
101
# binlog_path = # disable logging
102
- # binlog_path = @CONFDIR@/data # binlog.001 etc will be created there
103
+ # binlog_path = @localstatedir@/data # binlog.001 etc will be created there
106
# binlog flush/sync mode
107
--- a/sphinx-min.conf.in
108
+++ b/sphinx-min.conf.in
113
- path = @CONFDIR@/data/test1
114
+ path = @localstatedir@/data/test1
122
- path = @CONFDIR@/data/testrt
123
+ path = @localstatedir@/data/testrt
130
listen = 9306:mysql41
131
- log = @CONFDIR@/log/searchd.log
132
- query_log = @CONFDIR@/log/query.log
133
+ log = /var/log/sphinxsearch/searchd.log
134
+ query_log = /var/log/sphinxsearch/query.log
137
- pid_file = @CONFDIR@/log/searchd.pid
138
+ pid_file = /var/run/sphinxsearch/searchd.pid