Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 64195 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]
initscript for this package
yacy (text/plain), 1.55 KB, created by
slick
on 2005-07-24 04:38:20 UTC
(
hide
)
Description:
initscript for this package
Filename:
MIME Type:
Creator:
slick
Created:
2005-07-24 04:38:20 UTC
Size:
1.55 KB
patch
obsolete
>#!/sbin/runscript > >NICENESS="1" >YACY_HOME=/opt/yacy >YACY_USER=yacy >JAVA_OPTIONS="-Xmx128M" > >depend() { > need net >} > >cd $YACY_HOME > >JAVA="$(java-config --java)" > >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 > >CLASSES="${JAVA_OPTIONS} -classpath classes:htroot:$CLASSPATH" > >if [ -n "${NICENESS}" ] ; then > NICE="nice -n ${NICENESS}" >fi > >start() { > ebegin "Starting yacy" > > # without logging in file > ${NICE} sudo -u ${YACY_USER} ${JAVA} ${CLASSES} yacy &> /dev/null & > > # with logging in file (debugging) > #${NICE} sudo -u ${YACY_USER} ${JAVA} java ${CLASSES} yacy &> yacy.log & > > eend $return >} > >stop() { > ebegin "Shutting down yacy" > > ${NICE} sudo -u ${YACY_USER} ${JAVA} ${CLASSES} yacy -shutdown &> /dev/null > > max=`grep "^maxWaitingWordFlush=" DATA/SETTINGS/httpProxy.conf | cut -d "=" -f 2` > wait=`expr \( ${max} + 1 \) / 2` > > einfo "Info: maxWaitingWordFlush=${max}" > einfon "Waiting ." > cnt=0 > while ( ps aux | grep -v 'grep' | grep -- "${CLASSES}" &> /dev/null ) > do > cnt=`expr $cnt + 1` > if [ $cnt -gt ${wait} ] > then > eend 1 "Failed." > break > fi > sleep 2 > echo -n "." > done > echo "done." > eend $? >}
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