Changeset 7896


Ignore:
Timestamp:
2004-08-06T15:08:20+12:00 (20 years ago)
Author:
mdewsnip
Message:

Added mySQL startup and shutdown into the Windows launcher.

Location:
trunk/gsdl3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/gs3-launch.bat

    r6441 r7896  
    11@echo off
    22
     3echo.
     4echo Greenstone 3 (GSDL3)
     5echo Copyright (C) 2004 New Zealand Digital Libraries, University Of Waikato
     6echo Greenstone 3 comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt
     7echo This is free software, and you are welcome to redistribute it
     8echo.
    39
    410::  -------- Launch the Greenstone 3 Digital Library Software --------
    511
    6 if exist gs3-setup.bat goto start
     12if exist gs3-setup.bat goto begin
    713  echo This script must be run from within the Greenstone 3 home directory
    814  pause
    915  goto exit
    1016
    11 :start
     17:begin
    1218:: ---- Run setup.bat to set the necessary environment variables ----
    1319call gs3-setup.bat
    1420echo.
    15 if "%JAVA_HOME%" == "" goto exit
    1621
     22:: Set up java options for catalina
    1723set CATALINA_HOME=%GSDL3HOME%\comms\jakarta\tomcat
    1824set CATALINA_OPTS="-Djava.util.prefs.syncInterval=2000000 -DGSDL3HOME=%GSDL3HOME% -DGSDLOS=%GSDLOS% -DGSDLHOME= -DPATH=%PATH%"
    1925
    20 :: ---- Start the Tomcat server ----
    21 call "%GSDL3HOME%\comms\jakarta\tomcat\bin\startup.bat"
     26if ""%1"" == ""-shutdown"" goto shutdown
     27    ::  -------- Run MySQL --------
     28    echo Starting MySQL server...
     29    echo.
     30    cd %GSDL3HOME%\packages\mysql
     31    start bin\mysqld
     32    cd %GSDL3HOME%
     33    echo Done.
    2234
    23 :: ---- Launch a web browser ----
    24 start http://localhost:8080/gsdl3
     35    ::  -------- Run Tomcat --------
     36    echo Starting Tomcat Webserver...
     37    echo.
     38    call "%GSDL3HOME%\comms\jakarta\tomcat\bin\startup.bat"
     39    echo Done.
     40
     41    :: ---- Launch a web browser ----
     42    start http://localhost:8080/gsdl3
     43    goto exit
     44
     45:shutdown
     46    :: -------- Stop Tomcat --------
     47    echo Shutting down Tomcat Webserver...
     48    echo.
     49    call "%GSDL3HOME%\comms\jakarta\tomcat\bin\shutdown.bat"
     50    echo Done.
     51
     52    :: -------- Stop MySQL --------
     53    echo Stopping MySQL server...
     54    echo.
     55    cd %GSDL3HOME%\packages\mysql
     56    bin\mysqladmin --user=root shutdown
     57    cd %GSDL3HOME%
     58    echo Done.
     59
     60    echo ****************************************************************
     61    echo  Greenstone 3 has been shutdown. Run gs3-launch.bat to restart.
     62    echo ****************************************************************
    2563
    2664:exit
  • trunk/gsdl3/gs3-launch.sh.in

    r7880 r7896  
    33echo
    44echo "Greenstone 3 (GSDL3)"
    5 echo "Copyright (C) 2003 New Zealand Digital Libraries, University Of Waikato"
    6 echo "GSDL3 comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt"
     5echo "Copyright (C) 2004 New Zealand Digital Libraries, University Of Waikato"
     6echo "Greenstone 3 comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt"
    77echo "This is free software, and you are welcome to redistribute it"
    88echo
     
    2727
    2828    ##  -------- Run MySQL --------
    29 
    3029    echo "Starting MySQL Daemon..."
    3130    echo ""
     
    3433    popd
    3534    echo "Done."
     35
    3636    ##  -------- Run Tomcat --------
    37 
    3837    echo "Starting Tomcat Webserver..."
    3938    echo ""
     
    4443
    4544    ##  -------- Greenstone 3 --------
    46        
    4745    echo ""
    4846    echo "****************************************************************"
     
    6866   
    6967    ## -------- Stop Tomcat --------
    70    
    7168    echo "Shutting Down Tomcat Webserver..."
    7269    echo ""
     
    7774
    7875    ## -------- Stop MySQL --------
    79 
    8076    echo "Stop MySQL Daemon..."
    8177    echo ""
    8278    ./gs3-mysql-server.sh stop
    8379    echo "Done."
    84    
     80
    8581    ##  -------- Greenstone 3 --------
    8682    echo "****************************************************************"
    87     echo "Greenstone 3 has been shutdown. Run gs3-launch.sh to restart."
     83    echo " Greenstone 3 has been shutdown. Run gs3-launch.sh to restart."
    8884    echo "****************************************************************"
    8985
Note: See TracChangeset for help on using the changeset viewer.