yacy_search_server/startYACY.sh
2005-05-24 14:23:04 +00:00

26 lines
744 B
Bash
Executable File

#!/bin/sh
if [ $UID -eq 0 ]
then
echo
echo "For security reasons, you should not run this as root!"
echo
else
cd `dirname $0`
# generating the proper classpath
CLASSPATH=""
for N in `ls -1 lib/*.jar`; do CLASSPATH="$CLASSPATH$N:"; done
for N in `ls -1 libx/*.jar`; do CLASSPATH="$CLASSPATH$N:"; done
if [ x$1 != x-d ]
then
nohup java -classpath classes:$CLASSPATH yacy >> yacy.log &
echo "YaCy started as daemon process. View it's activity in yacy.log"
echo "To stop YaCy, please execute stopYACY.sh and wait some seconds"
echo "To administrate YaCy, start your web browser and open http://localhost:8080"
else
java -classpath classes:$CLASSPATH yacy
#java -Xms16m -Xmx200m -classpath classes:$CLASSPATH yacy
fi
fi