Доброго времени суток Поменяйте в скриптах: start: start-stop-daemon --start --make-pidfile --pidfile /var/run/sphinx-test.pid --exec /usr/bin/searchd -- --config /etc/sphinx/sphinx-test.conf stop: start-stop-daemon --stop --pidfile /var/run/sphinx-test.pid 6 июня 2013 г., 2:32 пользователь Sergey Kobzar написал: > Необходимо на сервере запустить 2 инстанса Sphinx'а. Для первого инстанса > все оставил как есть. Для второго > 1. Поменял порты (сокеты) в /etc/sphinx/sphinx-test.conf > 2. Поменял pid file в /etc/sphinx/sphinx-test.conf > 3. Изменил путь к инlексам в /etc/sphinx/sphinx-test.conf > 4. Переписал немного rc script: > > depend() { > need net > use logger > } > > checkconfig() { > if [ ! -f /etc/sphinx/sphinx-test.conf ]; then > eerror "Please create /etc/sphinx/sphinx-test.conf" > eerror "Sample conf: /etc/sphinx/sphinx.conf.dist" > return 1 > fi > return 0 > } > > start() { > checkconfig || return $? > > ebegin "Starting sphinx searchd" > start-stop-daemon --start --exec /usr/bin/searchd -- --config > /etc/sphinx/sphinx-test.conf > eend $? "Failed to start sphinx searchd" > } > > stop() { > ebegin "Stopping sphinx searchd" > start-stop-daemon --stop --exec /usr/bin/searchd -- --config > /etc/sphinx/sphinx-test.conf > eend $? "Failed to stop sphinx searchd" > > (добавил " -- --config /etc/sphinx/sphinx-test.conf") > > Стартуют оба инстанса без проблем, но если делаю /etc/init.d/searchd stop, > то стопаются оба инстанса. Пробовал добавлять --pidfile > /run/searchd-test.pid - безрезультатно. > > Any ideas? > > -- Andrey Burov aka burik666 ICQ: 262631594 http://burik666.org