Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 79427 Details for
Bug 100108
net-misc/yacy - p2p based distributed web-search engine
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
files/yacy-0.43.20060210.1593.rc
yacy-0.43.20060210.1593.rc (text/plain), 3.63 KB, created by
slick
on 2006-02-10 05:58:16 UTC
(
hide
)
Description:
files/yacy-0.43.20060210.1593.rc
Filename:
MIME Type:
Creator:
slick
Created:
2006-02-10 05:58:16 UTC
Size:
3.63 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2005 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/net-misc/yacy/files/yacy-0.43.20060210.1593.rc,v 1.1 2006/02/10 13:01:50 slick Exp $ > >depend() { > need net >} > >opts="migratewords minimizeurldb urldbcleanup domlist urllist" > >cd $YACY_HOME > >JAVA="$(java-config --java)" > >JAVA_ARGS="" >if [ -e DATA/SETTINGS/httpProxy.conf ] ; then > for i in $(grep javastart DATA/SETTINGS/httpProxy.conf); do > i="${i#javastart_*=}"; > JAVA_ARGS=-$i" "$JAVA_ARGS; > done >fi > >CLASSPATH="" >test -e lib/ && for N in `ls -1 lib/*.jar`; do CLASSPATH="$CLASSPATH$N:"; done >test -e libx/ && for N in `ls -1 libx/*.jar`; do CLASSPATH="$CLASSPATH$N:"; done >CLASSPATH="-classpath classes:htroot:$CLASSPATH" > >if [ -n "${NICENESS}" ] ; then > NICE="nice -n ${NICENESS}" >fi > >start() { > ebegin "Starting yacy" > ${NICE} sudo -u ${YACY_USER} ${JAVA} ${JAVA_ARGS} ${JAVA_OPTIONS} ${CLASSPATH} yacy &> /dev/null & > echo $! > /var/run/yacy.pid > sleep 1 > ps ax|grep "^ *$(cat /var/run/yacy.pid)" > /dev/null > eend $? >} > >stop() { > ebegin "Shutting down yacy" > sudo -u ${YACY_USER} ${JAVA} ${JAVA_ARGS} ${JAVA_OPTIONS} ${CLASSPATH} yacy -shutdown &> /dev/null & > einfon "Waiting ." > cnt=0 > while ( ps ax|grep "^ *$(cat /var/run/yacy.pid)" > /dev/null ) > do > cnt=`expr $cnt + 2` > if [ $cnt -gt ${WAIT_ON_STOP} ] ; then > eend 1 "Failed." > exit > fi > sleep 2 > echo -n "." > done > rm /var/run/yacy.pid > echo "done." > eend $? >} > >migratewords() { > if service_started "${myservice}" || test -e /var/run/yacy.pid ; then > einfo "yacy seems to be running already. You must stop it before continue." > einfo "if you are sure it is really stopped remove /var/run/yacy.pid and" > einfo "try again." > return 1 > else > ${NICE} sudo -u ${YACY_USER} ${JAVA} ${JAVA_ARGS} ${JAVA_OPTIONS} ${CLASSPATH} yacy -migratewords > fi >} > >minimizeurldb() { > if service_started "${myservice}" || test -e /var/run/yacy.pid ; then > einfo "yacy seems to be running already. You must stop it before continue." > einfo "If you are sure it is really stopped remove /var/run/yacy.pid and" > einfo "try again." > return 1 > else > ${NICE} sudo -u ${YACY_USER} ${JAVA} ${JAVA_ARGS} ${JAVA_OPTIONS} ${CLASSPATH} yacy -minimizeUrlDB > fi >} > >urldbcleanup() { > if service_started "${myservice}" || test -e /var/run/yacy.pid ; then > einfo "yacy seems to be running already. You must stop it before continue." > einfo "If you are sure it is really stopped remove /var/run/yacy.pid and" > einfo "try again." > r eturn 1 > else > ${NICE} sudo -u ${YACY_USER} ${JAVA} ${JAVA_ARGS} ${JAVA_OPTIONS} ${CLASSPATH} yacy -urldbcleanup > fi >} > >domlist() { > if service_started "${myservice}" || test -e /var/run/yacy.pid ; then > einfo "yacy seems to be running already. You must stop it before continue." > einfo "If you are sure it is really stopped remove /var/run/yacy.pid and" > einfo "try again." > return 1 > else > ${NICE} sudo -u ${YACY_USER} ${JAVA} ${JAVA_ARGS} ${JAVA_OPTIONS} ${CLASSPATH} yacy -domlist > fi >} > >urllist() { > if service_started "${myservice}" || test -e /var/run/yacy.pid ; then > einfo "yacy seems to be running already. You must stop it before continue." > einfo "If you are sure it is really stopped remove /var/run/yacy.pid and" > einfo "try again." > return 1 > else > ${NICE} sudo -u ${YACY_USER} ${JAVA} ${JAVA_ARGS} ${JAVA_OPTIONS} ${CLASSPATH} yacy -urllist > fi >} > >status() { > if service_started "${myservice}" ; then > if ! ps p `cat /var/run/yacy.pid` &> /dev/null ; then > eerror "service seems to be down" > return 1 > fi > else > if [ -e /var/run/yacy.pid ]; then > eerror "service seems to be already running" > return 1 > fi > return 0 > fi >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 100108
:
64194
|
64195
|
64670
|
65001
|
66311
|
66312
|
66313
|
66353
|
66354
|
66355
|
70686
|
70687
|
70688
|
74926
|
74927
|
74928
|
79426
| 79427 |
79429