Networker

Re: [Networker] stop BAckup client.

2007-11-12 06:11:29
Subject: Re: [Networker] stop BAckup client.
From: Yaron Zabary <yaron AT ARISTO.TAU.AC DOT IL>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Mon, 12 Nov 2007 13:05:28 +0200
This is my killstray.sh script. You might want to up the sleep time if you feel it is too low. It kills the index save as well:

  Use with 'killstary.sh clientname'

#!/bin/sh

WS=$1

echo Killing stray for $WS

PSCOUNT=`ps -ef | grep $WS | egrep -v 'grep|killstray' | wc -l`

echo $PSCOUNT processes

while [ $PSCOUNT -ge 1 ]
do
  echo Killing
  PID=`ps -ef | grep $WS | egrep -v 'grep|killstray' | awk '{print $2}`
  echo kill $PID
  kill -9 $PID
  sleep 5
  PSCOUNT=`ps -ef | grep $WS | egrep -v 'grep|killstray' | wc -l`
  echo $PSCOUNT processes
done


Elvis Ademba wrote:
Hi,

I would like to find out how i can stop single clients doing backup
while the rest of the group continues.

I have situations where the Backup runs late..... (sometimes, it may
overran into the next day) .. in this cases, in all cases i dont have
to stop the backups, coz they are imprortant, but once in a while the
admnistrators of the  servers want me to terminated the backup on only
one client  while the rest of the backup can go on.

How can i do this.
Regards
Elvis Ademba
......................

To sign off this list, send email to listserv AT listserv.temple DOT edu and type 
"signoff networker" in the body of the email. Please write to networker-request 
AT listserv.temple DOT edu if you have any problems with this list. You can access the 
archives at http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER


--

-- Yaron.

To sign off this list, send email to listserv AT listserv.temple DOT edu and type 
"signoff networker" in the body of the email. Please write to networker-request 
AT listserv.temple DOT edu if you have any problems with this list. You can access the 
archives at http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER

<Prev in Thread] Current Thread [Next in Thread>