Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 66355 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.rc
yacy.rc (text/plain), 1.46 KB, created by
slick
on 2005-08-19 15:24:42 UTC
(
hide
)
Description:
files/yacy.rc
Filename:
MIME Type:
Creator:
slick
Created:
2005-08-19 15:24:42 UTC
Size:
1.46 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.rc,v 1.2 2005/08/19 22:17:53 slick Exp $ > >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 >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_OPTIONS} ${CLASSPATH} yacy &> ${LOG} & > 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_OPTIONS} ${CLASSPATH} yacy -shutdown &> ${LOG} & > 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." > break > fi > sleep 2 > echo -n "." > done > echo "done." > rm /var/run/yacy.pid > eend $? >} > >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