Changeset 7896
- Timestamp:
- 2004-08-06T15:08:20+12:00 (20 years ago)
- Location:
- trunk/gsdl3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/gs3-launch.bat
r6441 r7896 1 1 @echo off 2 2 3 echo. 4 echo Greenstone 3 (GSDL3) 5 echo Copyright (C) 2004 New Zealand Digital Libraries, University Of Waikato 6 echo Greenstone 3 comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt 7 echo This is free software, and you are welcome to redistribute it 8 echo. 3 9 4 10 :: -------- Launch the Greenstone 3 Digital Library Software -------- 5 11 6 if exist gs3-setup.bat goto start12 if exist gs3-setup.bat goto begin 7 13 echo This script must be run from within the Greenstone 3 home directory 8 14 pause 9 15 goto exit 10 16 11 : start17 :begin 12 18 :: ---- Run setup.bat to set the necessary environment variables ---- 13 19 call gs3-setup.bat 14 20 echo. 15 if "%JAVA_HOME%" == "" goto exit16 21 22 :: Set up java options for catalina 17 23 set CATALINA_HOME=%GSDL3HOME%\comms\jakarta\tomcat 18 24 set CATALINA_OPTS="-Djava.util.prefs.syncInterval=2000000 -DGSDL3HOME=%GSDL3HOME% -DGSDLOS=%GSDLOS% -DGSDLHOME= -DPATH=%PATH%" 19 25 20 :: ---- Start the Tomcat server ---- 21 call "%GSDL3HOME%\comms\jakarta\tomcat\bin\startup.bat" 26 if ""%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. 22 34 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 **************************************************************** 25 63 26 64 :exit -
trunk/gsdl3/gs3-launch.sh.in
r7880 r7896 3 3 echo 4 4 echo "Greenstone 3 (GSDL3)" 5 echo "Copyright (C) 200 3New Zealand Digital Libraries, University Of Waikato"6 echo "G SDL3 comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt"5 echo "Copyright (C) 2004 New Zealand Digital Libraries, University Of Waikato" 6 echo "Greenstone 3 comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt" 7 7 echo "This is free software, and you are welcome to redistribute it" 8 8 echo … … 27 27 28 28 ## -------- Run MySQL -------- 29 30 29 echo "Starting MySQL Daemon..." 31 30 echo "" … … 34 33 popd 35 34 echo "Done." 35 36 36 ## -------- Run Tomcat -------- 37 38 37 echo "Starting Tomcat Webserver..." 39 38 echo "" … … 44 43 45 44 ## -------- Greenstone 3 -------- 46 47 45 echo "" 48 46 echo "****************************************************************" … … 68 66 69 67 ## -------- Stop Tomcat -------- 70 71 68 echo "Shutting Down Tomcat Webserver..." 72 69 echo "" … … 77 74 78 75 ## -------- Stop MySQL -------- 79 80 76 echo "Stop MySQL Daemon..." 81 77 echo "" 82 78 ./gs3-mysql-server.sh stop 83 79 echo "Done." 84 80 85 81 ## -------- Greenstone 3 -------- 86 82 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." 88 84 echo "****************************************************************" 89 85
Note:
See TracChangeset
for help on using the changeset viewer.