AS_HELP_STRING([--enable-kill-parent-hack],[Kill parent on shutdown]),
[ if test "$enableval" = "yes" ; then
AC_MSG_NOTICE([Kill parent on shutdown])
- AC_DEFINE(KILL_PARENT_OPT,1,[A dangerous feature which causes Squid to kill its parent process
- (presumably the RunCache script) upon receipt of SIGTERM or SIGINT.
- Use with caution.])
+ AC_DEFINE(KILL_PARENT_OPT,1,[A dangerous feature which causes Squid to kill its parent process upon receipt of SIGTERM or SIGINT. Use with caution.])
fi
])
compat/Makefile \
lib/Makefile \
scripts/Makefile \
- scripts/RunCache \
- scripts/RunAccel \
src/Makefile \
src/base/Makefile \
src/acl/Makefile \
-bin_SCRIPTS = RunCache RunAccel
EXTRA_DIST = AnnounceCache.pl access-log-matrix.pl cache-compare.pl \
cachetrace.pl check_cache.pl convert.configure.to.os2 \
fileno-to-pathname.pl flag_truncs.pl icp-test.pl \
+++ /dev/null
-#!/bin/sh
-#
-# $Id$
-
-# enable HTTP requests on port 80
-port="-a 80"
-
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-logdir=@localstatedir@
-PATH=@sbindir@:/bin:/usr/bin
-export PATH
-
-if test $# = 1 ; then
- conf="-f $1"
- shift
-fi
-
-failcount=0
-while : ; 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 10
-done
+++ /dev/null
-#!/bin/sh
-#
-# $Id$
-
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-logdir=@localstatedir@
-PATH=@sbindir@:/bin:/usr/bin
-export PATH
-
-conf=""
-if test "$1" ; then
- conf="-f $1"
- shift
-fi
-
-failcount=0
-while : ; do
- echo "Running: squid -sY $conf >> $logdir/squid.out 2>&1"
- echo "Startup: `date`" >> $logdir/squid.out
- start=`date '+%d%H%M%S'`
- squid -NsY $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 10
-done
#ifdef KILL_PARENT_OPT
if (getppid() > 1) {
- debugs(1, 1, "Killing RunCache, pid " << getppid());
+ debugs(1, 1, "Killing master process, pid " << getppid());
if (kill(getppid(), sig) < 0)
debugs(1, 1, "kill " << getppid() << ": " << xstrerror());