Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 472916

Summary: app-misc/sphinx - multiple instances support
Product: Gentoo Linux Reporter: Sergey Kobzar <sergey.kobzar>
Component: Current packagesAssignee: Hans de Graaff <graaff>
Status: CONFIRMED ---    
Severity: enhancement CC: whissi
Priority: Normal Keywords: Inclusion
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 514922    
Bug Blocks:    
Attachments: init script
logrotate config file

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)"
}