Changeset 35486 for trunk/pstamp/scripts/pstamp_server_status
- Timestamp:
- May 2, 2013, 11:51:29 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/scripts/pstamp_server_status (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstamp_server_status
r33016 r35486 65 65 66 66 67 my $serverRunning = 0; 67 68 my $command = "$pantasks_client < $pantasks_script"; 68 69 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 69 70 run(command => $command, verbose => $verbose); 70 unless ($success) { 71 if ($success) { 72 $serverRunning = 1; 73 } else { 71 74 $error_code = (($error_code >> 8) or 1); 72 if ($error_code == 12 ) {73 print "Postage Stamp Server is not running\n ";75 if ($error_code == 12 || $error_code == 13) { 76 print "Postage Stamp Server is not running\n<br>"; 74 77 #print "Postage Stamp Server will be down for maintenance it will back shortly.\n"; 75 exit 0;78 # exit 0; 76 79 } else { 77 warn(" $command failed. exit status: $error_code");78 exit $error_code;80 warn("\nError: $command failed. exit status: $error_code\n"); 81 # exit $error_code; 79 82 } 80 83 } … … 119 122 } else { 120 123 print STDERR "Controller state not found"; 121 exit 1;124 # exit 1; 122 125 } 123 126 print "$br$br\n"; 124 } els e{127 } elsif ($serverRunning) { 125 128 print STDERR "Scheduler state not found"; 126 exit 1;129 # exit 1; 127 130 } 128 131 … … 148 151 print "Task pstamp.job.run not found.<br />\n"; 149 152 } 150 } els e{151 print "Task pstamp.request.run not found. \n";153 } elsif ($serverRunning) { 154 print "Task pstamp.request.run not found.<br >\n"; 152 155 } 153 156 }
Note:
See TracChangeset
for help on using the changeset viewer.
