Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 472916 - app-misc/sphinx - multiple instances support
Summary: app-misc/sphinx - multiple instances support
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Hans de Graaff
URL:
Whiteboard:
Keywords: Inclusion
Depends on: 514922
Blocks:
  Show dependency tree
 
Reported: 2013-06-10 20:26 UTC by Sergey Kobzar
Modified: 2014-06-24 13:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
init script (searchd,730 bytes, text/plain)
2013-06-10 20:26 UTC, Sergey Kobzar
Details
logrotate config file (sphinx,211 bytes, text/plain)
2013-06-10 20:26 UTC, Sergey Kobzar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Kobzar 2013-06-10 20:26:06 UTC
Created attachment 350710 [details]
init script

Current app-misc/sphinx ebuild does not support multiple instances. 2 files attached:
- searchd - init script with multiple instances support. User should create link to /etc/init.d/searchd and configuration file inside /etc/sphinx/ with appropriate name.
- sphinx - logrotate configuration file to rotate logs for multiple running instances.

Please add to portage tree.


Reproducible: Always
Steps to Reproduce: None
Actual Results: Sphinx can run only one instance with the default init script.
Expected Results: Sphinx init script should be able to launch multiple instances by symlinking.
Comment 1 Sergey Kobzar 2013-06-10 20:26:51 UTC
Created attachment 350712 [details]
logrotate config file
Comment 2 Sergey Kobzar 2013-06-10 20:31:59 UTC
Btw, it worth to add something like this to ebuild:

pkg_postinst() {
    einfo "If you want to run multiple Sphinx instances:"
    einfo "- make a link of /etc/init.d/searchd"
    einfo "- create a copy of /etc/sphinx/sphinx.conf with appropriate name"
    einfo "- Change listen, log, query_log, pid_file and binlog_path in config file"
    einfo "- Start new instance using appropriate init script (link)"
}