⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 broker

📁 harvest是一个下载html网页得机器人
💻
字号:
#!/bin/bash## Startup script for the Harvest Broker## chkconfig: 345 86 14# description: HARVEST is an integrated set of tools to gather, extract,#	       organize, and search information across the Internet.#	       The BROKER retrieves and manages indexing information from#	       Gatherers and other Brokers, and provides a WWW query interface#	       to the indexing information.## processname: broker# pidfile: /var/run/broker.pid# config: $HARVEST_HOME/Brokers/Brokers.cf## TODO: - run more than 1 broker## Source function library.. /etc/rc.d/init.d/functions# Path to where you install harvestHARVEST_HOME="/opt/harvest"HARVEST_USER="apache"## Do not change after this line ############brokerhome="${HARVEST_HOME}/brokers"broker_name="`/bin/grep -v '#' "${brokerhome}/Brokers.cf" | /bin/awk '{print $1}'`"prog=brokerRETVAL=0start() {	echo -n "Starting $prog: "	daemon --user ${HARVEST_USER} "${brokerhome}/${broker_name}/RunBroker -nocol"	RETVAL=$?	echo	[ $RETVAL = 0 ] && touch /var/lock/subsys/${prog}	echo `pidof ${prog}` > /var/run/${prog}.pid	return $RETVAL}stop() {	echo -n $"Stopping $prog: "	killproc $prog	RETVAL=$?	echo	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/${prog} /var/run/${prog}.pid}# See how we were called.case "$1" in  start)	start	;;  stop)	stop	;;  status)	status ${prog}	;;  restart)	stop	start	;;  condrestart)	if [ -f /var/run/${prog}.pid ] ; then		stop		start	fi	;;  *)	echo $"Usage: $prog {start|stop|restart|condrestart|status}"	exit 1esacexit $RETVAL

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -