- Timestamp:
- Feb 11, 2011, 4:29:48 PM (15 years ago)
- Location:
- branches/czw_branch/20101203
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
pstamp/scripts/pstamp_server_status (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20101203
- Property svn:mergeinfo changed
-
branches/czw_branch/20101203/pstamp/scripts/pstamp_server_status
r29572 r30586 25 25 26 26 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 27 #pod2usage( -msg => "Required options: --first --stage",28 # -exitval => 3) unless29 # defined $first and30 # defined $stage;31 27 32 28 # Look for programs we need … … 39 35 } 40 36 37 # XXX: Note under pantasks this will be the curent directory, so this 38 # isn't necessary if the pstamp/web stuff is configured to point at the 39 # ipp build. But currently it's running out of Bill's build 41 40 my $ipphome = "/home/panstarrs/ipp"; 41 my $status_cmd = "psstatus"; 42 42 43 $rundir = "$ipphome/pstamp" if !$rundir; 43 44 44 45 chdir $rundir or die "failed to cd to $rundir"; 45 46 47 48 my $down = 0; 49 if ($down) { 50 print "Postage Stamp Server will be down for maintenance it will back at approximately 00:00 2010-12-11 UTC\n"; 51 exit 0; 52 } 53 54 my $now = `date -u`; 55 56 print "<b>Status updated: </b> $now<br /><br />\n"; 46 57 47 58 my ($pts, $pantasks_script) = tempfile ('/tmp/pts.XXXX', UNLINK => !$save_temps); … … 132 143 print "Task pstamp.job.run not found.<br />\n"; 133 144 } 145 146 # now run the script psstatus to check the status of running requests and finished requests 134 147 print "<br /><b>Unfinished Requests</b><br />\n"; 135 148 print "<pre>\n"; 136 system " /home/panstarrs/bills/ipp/tools/psstatus -r";149 system "$status_cmd --running"; 137 150 print "</pre>\n"; 151 152 if (0) { 153 # these are included in running requests above 154 print "<br /><b>Requests building results fileset</b><br/>\n"; 155 print "<pre>\n"; 156 system "$status_cmd --finishing"; 157 print "</pre>\n"; 158 } 159 138 160 print "<br /><b>Requests completed in last 24 hours (most recently completed first)</b><br />\n"; 139 161 print "<pre>\n"; 140 # finished requests 141 system "/home/panstarrs/bills/ipp/tools/psstatus -f"; 162 system "$status_cmd --finished"; 142 163 print "</pre>\n"; 164 143 165 } else { 144 166 print "Task pstamp.request.run not found.\n"; … … 147 169 148 170 149 150 171 exit 0;
Note:
See TracChangeset
for help on using the changeset viewer.
