Войти

Показать полную графическую версию : Автозапуск Sphinx в Gentoo


numismad
04-03-2010, 12:17
Здравствуйте!
Прошу помощи решить проблему

если добавить строку в rc.local
/usr/bin/searchd --config /etc/sphinx/sphinx.conf
сервер после старта не подымается

есть еще в /etc/conf.d/
файл local
с содержимым:
# Here is where you can put anything you need to start
# that there is not an init script for.

local_start() {
# This is a good place to load any misc programs
# on startup (use &>/dev/null to hide output)

# We should always return 0
return 0
}

local_stop() {
# This is a good place to unload any misc.
# programs you started above.

# We should always return 0
return 0
}

и local.stop
с содержимым:
# /etc/conf.d/local.stop

# This is a good place to unload any misc.
# programs you started above.
# For example, if you are using OSS and have
# "/usr/local/bin/soundon" above, put
# "/usr/local/bin/soundoff" here.

echo "/dev/simfs / reiserfs rw,usrquota,grpquota 0 0" > /etc/mtab


как прописать грамотно строку /usr/bin/searchd --config /etc/sphinx/sphinx.conf
подскажите пожалуйста




© OSzone.net 2001-2012