Changeset 20159


Ignore:
Timestamp:
2009-08-05T16:59:14+12:00 (15 years ago)
Author:
ak19
Message:

Now uses the START batch command to startup the apache webserver so that it doesn't run in this console, thereby allowing the web-stop target to be typed in the same console to stop the webserver.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/gsicontrol.bat

    r19970 r20159  
    4646:: For all other commands, the greenstone environment needs to be set first before they can be run
    4747:testgsdl
    48 if NOT "%GSDLHOME%" == "" goto commands
     48if NOT "%GSDLHOME%" == "" if NOT "%GSDLOS%" == "" goto commands
    4949        echo.
    50     echo Environment variable GSDLHOME not set.
     50    echo Environment variable GSDLHOME (or GSDLOS) not set.
    5151    echo   This needs to be set to run the gsicontrol command %target%.
    5252    echo   Have you run setup.bat?
     
    7272
    7373:start
    74 "%GSDLHOME%\bin\windows\starthttpd.exe" GS2_APACHE_HTTPD "%GSDLHOME%\apache-httpd\windows\bin\httpd.exe"
     74:: START starts the app in a new console named by the string following immediately thereafter
     75:: then we start up apache-httpd and pass the signal that the stop command will respond to
     76START "%GSDLHOME%\apachectl" "%GSDLHOME%\bin\windows\starthttpd.exe" GS2_APACHE_HTTPD "%GSDLHOME%\apache-httpd\windows\bin\httpd.exe"
    7577echo %MONITOR_SUCCESS%
    7678echo %MONITOR_FINISHED%
Note: See TracChangeset for help on using the changeset viewer.