Last modified: 2013-10-23 23:43:43 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T23031, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 21031 - lsearchd should "exec java ..." to optimize the number of running daemon
lsearchd should "exec java ..." to optimize the number of running daemon
Status: RESOLVED WONTFIX
Product: Wikimedia
Classification: Unclassified
lucene-search-2 (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-10-07 09:49 UTC by Anon Sricharoenchai
Modified: 2013-10-23 23:43 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Anon Sricharoenchai 2009-10-07 09:49:18 UTC
lsearchd should "exec java ..." to optimize the number of running daemon like this,

lsearchd:
    #!/bin/sh
    jardir=`dirname $0` # put your jar dir here!
   -java -Djava.rmi.server.codebase=file://$jardir/LuceneSearch.jar -Djava.rmi.server.hostname=$HOSTNAME -jar $jardir/LuceneSearch.jar $*
   +exec java -Djava.rmi.server.codebase=file://$jardir/LuceneSearch.jar -Djava.rmi.server.hostname=$HOSTNAME -jar $jardir/LuceneSearch.jar $*


It also help handling lsearchd daemon using "start-stop-daemon --stop" more easier.
Comment 1 Anon Sricharoenchai 2009-10-07 11:55:03 UTC
Should also use "$@" rather than $*, to pass arguments,

   exec java -Djava.rmi.server.codebase=file://$jardir/LuceneSearch.jar -Djava.rmi.server.hostname=$HOSTNAME -jar $jardir/LuceneSearch.jar "$@"
Comment 2 Bugmeister Bot 2011-08-19 19:12:41 UTC
Unassigning default assignments. http://article.gmane.org/gmane.science.linguistics.wikipedia.technical/54734
Comment 3 Sumana Harihareswara 2011-09-26 15:42:20 UTC
Anon Sricharoenchai, can you tell us whether your patch still works against current trunk, and attach it as a diff?  Thanks!
Comment 4 Sumana Harihareswara 2011-12-23 18:45:00 UTC
Anon, instructions for attaching a patch as a diff:

https://www.mediawiki.org/wiki/Patch#Posting_a_patch
Comment 5 Andre Klapper 2013-03-26 11:20:00 UTC
[Merging "MediaWiki extensions/Lucene Search" into "Wikimedia/lucene-search2", see bug 46542. You can filter bugmail for: search-component-merge-20130326 ]
Comment 6 Andre Klapper 2013-07-24 13:06:11 UTC
I don't see any patch here. Removing keyword.
Comment 7 Chad H. 2013-10-23 23:43:43 UTC
Wont be fixing this, lsearchd has reached its end of life.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links