From: "Андрей Буров" <burik666@gmail.com>
To: "gentoo-user-ru@lists.gentoo.org" <gentoo-user-ru@lists.gentoo.org>
Subject: [gentoo-user-ru] Re: [gentoo-user-ru] Два инстанса Sphinx
Date: Thu, 6 Jun 2013 11:02:13 +0400 [thread overview]
Message-ID: <CABKELyx-HEOGh6Yi8_z_1+FV5C8gr+ON7U5o0_P33+mSpVrf_g@mail.gmail.com> (raw)
In-Reply-To: <51AFBC7B.8070704@mail.ru>
[-- Attachment #1: Type: text/plain, Size: 2150 bytes --]
Доброго времени суток
Поменяйте в скриптах:
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 <sergey.kobzar@mail.ru>написал:
> Необходимо на сервере запустить 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
[-- Attachment #2: Type: text/html, Size: 3480 bytes --]
next prev parent reply other threads:[~2013-06-06 7:02 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-05 22:32 [gentoo-user-ru] Два инстанса Sphinx Sergey Kobzar
2013-06-06 7:02 ` Андрей Буров [this message]
2013-06-06 15:16 ` [gentoo-user-ru] " Sergey Kobzar
2013-06-06 17:23 ` [gentoo-user-ru] " Андрей Буров
2013-06-06 18:54 ` [gentoo-user-ru] " Sergey Popov
2013-06-06 19:10 ` [gentoo-user-ru] " Taz
2013-06-06 19:35 ` Sergey Kobzar
2013-06-07 6:22 ` [gentoo-user-ru] " Sergey Popov
2013-06-07 6:23 ` [gentoo-user-ru] " Sergey Popov
2013-06-07 8:28 ` [gentoo-user-ru] " Sergey Kobzar
2013-06-07 12:44 ` Sergey Kobzar
2013-06-08 11:39 ` Sergey Popov
2013-06-09 22:01 ` Sergey Kobzar
2013-06-10 1:32 ` [gentoo-user-ru] " Голубев Александр
2013-06-10 8:20 ` Sergey Kobzar
2013-06-10 20:29 ` Sergey Kobzar
2013-06-13 11:44 ` Sergey Kobzar
2013-06-13 17:36 ` Sergey Popov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CABKELyx-HEOGh6Yi8_z_1+FV5C8gr+ON7U5o0_P33+mSpVrf_g@mail.gmail.com \
--to=burik666@gmail.com \
--cc=gentoo-user-ru@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox