1
Ubuntu 10.04にSphinxSearchがインストールされています。sphinxsearch pidファイルが空でnetstatが何も報告しない
私がそれを起動するたびに、pidファイル(/var/run/searchd.pid)は空のファイルです。私は数秒間サービスを再開することができます。次に、再起動します:不明なインスタンス: '
また、「netstat |」の下にSphinxSearchが表示されません。 grep 9312 '。
以下は、自分の設定ファイルのsearchd部分です。
searchd
{
listen = 9312
log = /var/log/sphinxsearch/searchd.log
query_log = /var/log/sphinxsearch/log/query.log
read_timeout = 5
max_children = 30
pid_file = /var/run/searchd.pid
max_matches = 1000
seamless_rotate = 1
preopen_indexes = 0
unlink_old = 1
}
と/etc/init/sphinxsearch.confは少し検索した後
# SphinxSearch Service
description "SphinxSearch Daemon"
author "Andrey Aksyonoff <[email protected]>"
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/bin/searchd --nodetach
あなたの '/ etc/init/whatever'設定ファイルはどうなっていますか? – sarnold
'/ etc/init.d/sphinxsearch'は上記に含まれています – castis
これは'/etc/init/sphinxsearch'ジョブ設定ファイルではなく互換性ラッパーです... – sarnold