From bdb2d883c30acafdc7ab73753015b24c948af810 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 7 Jan 2004 13:26:16 +0000 Subject: [PATCH] remove yaz-proxy-ka.sh --- etc/yaz-proxy-ka.sh | 42 ------------------------------------------ etc/yaz-proxy.sh | 5 ++--- 2 files changed, 2 insertions(+), 45 deletions(-) delete mode 100755 etc/yaz-proxy-ka.sh diff --git a/etc/yaz-proxy-ka.sh b/etc/yaz-proxy-ka.sh deleted file mode 100755 index 20d1a46..0000000 --- a/etc/yaz-proxy-ka.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh -# $Id: yaz-proxy-ka.sh,v 1.3 2003-10-24 12:35:37 adam Exp $ -# -# YAZ proxy keepalive wrapper, use this when testing the proxy. -# -# Allow core dumps when testing. -ulimit -c 200000 -# -LOGFILE=/var/log/yaz-proxy-ka.log -# -touch $LOGFILE || exit 1 -i=1 -while test $i -lt 100; do - date >>$LOGFILE - echo "Starting proxy iteration=$i" >>$LOGFILE - yaz-proxy $* - code=$? - date >>$LOGFILE - echo "Proxy Stopped. Exit code=$code" >>$LOGFILE - if test "$code" = "143"; then - echo "Got TERM. Exiting" >>$LOGFILE - exit 0 - fi - if test "$code" = "129"; then - echo "Got HUP. Exiting" >>$LOGFILE - exit 0 - fi - if test "$code" = "137"; then - echo "Got KILL. Exiting" >>$LOGFILE - exit 0 - fi - if test "$code" = "0"; then - echo "Exit 0. Exiting" >>$LOGFILE - exit 0 - fi - if test -f core; then - echo "Saving core file" >>$LOGFILE - mv -f core core.`date +%Y%m%d%k%M` - fi - sleep 1 - i=`expr $i + 1` -done diff --git a/etc/yaz-proxy.sh b/etc/yaz-proxy.sh index 1434864..2b8e8fd 100755 --- a/etc/yaz-proxy.sh +++ b/etc/yaz-proxy.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: yaz-proxy.sh,v 1.4 2003-11-25 21:54:02 adam Exp $ +# $Id: yaz-proxy.sh,v 1.5 2004-01-07 13:26:16 adam Exp $ # YAZ proxy start/stop init.d script. # PATH=/usr/local/bin:/bin:/usr/bin @@ -7,9 +7,8 @@ export PATH # Proxy CWD is here. Should be writable by it. DIR=/var/yaz-proxy -# Proxy Path (either the actual one, or the keepalive one (for testing) +# Proxy Path DAEMON=/usr/local/bin/yaz-proxy -#DAEMON=/var/yaz-proxy/yaz-proxy-ka.sh # Proxy PIDFILE. Must be writable by it. PIDFILE="/var/run/yaz-proxy.pid" -- 1.7.10.4