source: trunk/gsdl3/gs3-launch.bat.in@ 8068

Last change on this file since 8068 was 8068, checked in by mdewsnip, 20 years ago

Removed the GSDLHOME argument, to be consistent with gs3-launch.sh.in.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1@echo off
2
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.
9
10:: -------- Launch the Greenstone 3 Digital Library Software --------
11
12if exist gs3-setup.bat goto begin
13 echo This script must be run from within the Greenstone 3 home directory
14 pause
15 goto exit
16
17:begin
18:: ---- Run setup.bat to set the necessary environment variables ----
19call gs3-setup.bat
20echo.
21
22:: Set up java options for catalina
23set CATALINA_HOME=%GSDL3HOME%\comms\jakarta\tomcat
24set CATALINA_OPTS="-Djava.util.prefs.syncInterval=2000000 -DGSDL3HOME=%GSDL3HOME% -DGSDLOS=%GSDLOS% -DPATH=%PATH%"
25
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.
34
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 ****************************************************************
63
64:exit
Note: See TracBrowser for help on using the repository browser.