From dd45b1348102c7b1b95716a7e84acf10023a07fc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Thu, 10 Nov 2005 09:36:50 +0000 Subject: [PATCH] Let's kill started up jp-importer. --- org.glite.jp.client/examples/glite-jp-importer.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org.glite.jp.client/examples/glite-jp-importer.sh b/org.glite.jp.client/examples/glite-jp-importer.sh index 3cd9788..02c79ee 100644 --- a/org.glite.jp.client/examples/glite-jp-importer.sh +++ b/org.glite.jp.client/examples/glite-jp-importer.sh @@ -1,4 +1,4 @@ -#! /bin/sh +#! /bin/bash # # example script for purging LB and importing the dumps to JP @@ -35,6 +35,8 @@ LOGDIR=/tmp/log echo "Using cert args $CERT_ARGS" $PREFIX/bin/glite-jp-importer -r $BKSERVER_JOBREG_MAILDIR -d $LB_DUMPDIR $CERT_ARGS -g -p $JBSERVER > $LOGDIR/jp-importer.log 2>&1 & +JP_PID=$! +trap "kill $JP_PID; exit 0" SIGINT while [ 1 ]; do $PREFIX/sbin/glite-lb-purge -o 1 -l -m $BKSERVER -- 1.8.2.3