mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-21 00:00:13 +02:00
7a7254713d
See: http://www.yacy-forum.de/viewtopic.php?t=940#7656 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@627 6c8d7289-2bf4-0310-a012-ef5d649a1542
30 lines
908 B
Bash
Executable File
30 lines
908 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 ] #debug
|
|
then
|
|
java -classpath classes:$CLASSPATH yacy
|
|
exit 0
|
|
elif [ x$1 == x-l ] #logging
|
|
then
|
|
nohup java -classpath classes:htroot:$CLASSPATH yacy >> yacy.log &
|
|
else
|
|
nohup java -classpath classes:htroot:$CLASSPATH yacy > /dev/null &
|
|
# nohup java -Xms160m -Xmx160m -classpath classes:htroot:$CLASSPATH yacy > /dev/null &
|
|
fi
|
|
echo "YaCy started as daemon process. View it's activity in DATA/LOG/yacy00.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"
|
|
fi
|