#!/bin/sh JAVA="`which java`" CONFIGFILE="DATA/SETTINGS/yacy.conf" LOGFILE="yacy.log" PIDFILE="yacy.pid" OS="`uname`" #check if OS is Sun Solaris or one of the OpenSolaris distributions and use different version of id if necessary if [ $OS = "SunOS" ] then # only this version of id supports the parameter -u ID="/usr/xpg4/bin/id" else # regular id for any other case (especially Linux and OSX) ID="id" fi if [ "`$ID -u`" -eq 0 ] then echo echo "For security reasons you should not run this script as root!" echo exit 1 elif [ ! -x "$JAVA" ] then echo "The java command is not executable." echo "Either you have not installed java or it is not in your PATH" #Cron supports setting the path in #echo "Has this script been invoked by CRON?" #echo "if so, please set PATH in the crontab, or set the correct path in the variable in this script." exit 1 fi usage() { cat - <.log) **" echo "** STOP YaCy: execute stopYACY.sh and wait some seconds **" echo "** GET HELP for YaCy: see www.yacy-websearch.net/wiki and forum.yacy.de **" echo "*******************************************************************************" echo " >> YaCy started as daemon process. Administration at http://localhost:$PORT << " eval $cmdline if [ "$TAILLOG" -eq "1" -a ! "$DEBUG" -eq "1" ];then sleep 1 tail -f DATA/LOG/yacy00.log fi fi