Changeset 20639 for gsdl


Ignore:
Timestamp:
2009-09-18T20:23:46+12:00 (15 years ago)
Author:
ak19
Message:

Now, on web-start and web-stop, the gsicontrol.bat script no longer automatically returns MONITOR_SUCCESS. If the errorlevel value returned from the stophttpd and starthttpd executables are negative, MONITOR_FAILED is returned. Only if errorlevel is 0 or higher, is MONITOR_SUCCESS returned. Modified the starthttpd (and starthttpdchild) and stophttpd cpp files to return a -1 when the number of arguments are wrong.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/gsicontrol.bat

    r20637 r20639  
    9191:: then we start up apache-httpd and pass the signal that the stop command will respond to
    9292START "%GSDLHOME%\apachectl" "%GSDLHOME%\bin\windows\starthttpd.exe" %GS2_APACHE_HTTPD_SIGNAL% "%GSDLHOME%\apache-httpd\windows\bin\httpd.exe"
    93 echo %MONITOR_SUCCESS%
     93:: if the return value is >= 0, it's succeeded:
     94if ERRORLEVEL 0 (echo %MONITOR_SUCCESS%) else (echo %MONITOR_FAILED%)
    9495echo %MONITOR_FINISHED%
    9596goto exit
     
    99100if exist "%GSDLHOME%\apache-httpd\%GSDLOS%\conf\httpd.conf" "%GSDLHOME%\bin\windows\stophttpd.exe" %GS2_APACHE_HTTPD_SIGNAL% SILENT
    100101if "%target%" == "web-stop-tested" goto exit
    101 echo %MONITOR_SUCCESS%
     102:: if the return value is >= 0, it's succeeded:
     103if ERRORLEVEL 0 (echo %MONITOR_SUCCESS%) else (echo %MONITOR_FAILED%)
    102104echo %MONITOR_FINISHED%
    103105goto exit
Note: See TracChangeset for help on using the changeset viewer.