ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/JSOC/proj/lev0/scripts/stop_lev0_IRIS.pl
Revision: 1.1
Committed: Thu Mar 21 20:00:29 2013 UTC (10 years, 6 months ago) by prodtest
Content type: text/plain
Branch: MAIN
CVS Tags: Ver_8-8, Ver_8-11, Ver_8-2, Ver_8-10, Ver_8-0, Ver_8-1, Ver_8-6, Ver_LATEST, Ver_8-4, Ver_9-41, Ver_8-3, Ver_8-5, Ver_8-12, Ver_8-7, Ver_9-5, Ver_9-4, Ver_9-3, Ver_9-2, Ver_9-1, Ver_9-0, HEAD
Log Message:
*** empty log message ***

File Contents

# Content
1 #!/usr/bin/perl
2 #
3 print "I'm stopping all the ingest_lev0 IRIS processes...\n";
4 $cmd = "touch /usr/local/logs/lev0/VC03_stop";
5 `$cmd`;
6 while(1) {
7 $cfound = 0;
8 #wait until they're all stopped
9 @ps_prod = `ps -ef | grep ingest_lev0_iris`;
10 while($_ = shift(@ps_prod)) {
11 if(/vc VC03/) {
12 $cfound = 1;
13 sleep 1;
14 last;
15 }
16 }
17 if(!$cfound) { last; }
18 }
19