Last modified: 2013-10-23 23:43:43 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.
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 "$@"
Unassigning default assignments. http://article.gmane.org/gmane.science.linguistics.wikipedia.technical/54734
Anon Sricharoenchai, can you tell us whether your patch still works against current trunk, and attach it as a diff? Thanks!
Anon, instructions for attaching a patch as a diff: https://www.mediawiki.org/wiki/Patch#Posting_a_patch
[Merging "MediaWiki extensions/Lucene Search" into "Wikimedia/lucene-search2", see bug 46542. You can filter bugmail for: search-component-merge-20130326 ]
I don't see any patch here. Removing keyword.
Wont be fixing this, lsearchd has reached its end of life.