runaccel.in

来自「-」· IN 代码 · 共 37 行

IN
37
字号
#!/bin/sh##  $Id: RunAccel.in,v 1.5 1999/01/29 18:19:45 wessels Exp $# enable HTTP requests on port 80port="-a 80"prefix=@prefix@exec_prefix=@exec_prefix@logdir=@localstatedir@PATH=@bindir@:/bin:/usr/binexport PATHif test $# = 1 ; then	conf="-f $1"	shiftfifailcount=0while : ; do	echo "Running: squid $port -s $conf >> $logdir/squid.out 2>&1"	start=`date '+%d%H%M%S'`	squid -N $port -s $conf >> $logdir/squid.out 2>&1	stop=`date '+%d%H%M%S'`	t=`expr $stop - $start`	if test 0 -le $t -a $t -lt 5 ; then		failcount=`expr $failcount + 1`	else		failcount=0	fi	if test $failcount -gt 5 ; then              echo "RunCache: EXITING DUE TO REPEATED, FREQUENT FAILURES" >&2		exit 1	fi	sleep 10done

⌨️ 快捷键说明

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