Changeset 20896


Ignore:
Timestamp:
11/03/09 18:19:49 (11 years ago)
Author:
ak19
Message:

When the GSI is about to run, messages are displayed to tell the user where the Greenstone server log and the apache error log files are.

Location:
gsdl/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/gs2-server.bat

    r20819 r20896  
    22SETLOCAL
    33
    4 set serverlang=en
     4if "%serverlang%" == "" set serverlang=en
    55set java_min_version=1.5.0_00
    6 set PROGNAME="gs2-server"
    7 if "%PROGABBR%" == "" set PROGABBR="GSI"
     6set PROGNAME=gs2-server
     7if "%PROGABBR%" == "" set PROGABBR=GSI
    88pushd "%CD%"
    99CD /D "%~dp0"
     
    127127
    128128:: ---- Run the Greenstone Server Interface ----
     129:: Some informative messages to direct the users to the logs
     130if "%serverlang%" == "en" (
     131   echo ***************************************************************
     132   echo Starting the Greenstone Server Interface (GSI)...
     133   echo.
     134   echo Server log messages go to:
     135   echo    $GSDLHOME/etc/logs-gsi/server.log
     136   echo.
     137   echo Using Apache web server located at:
     138   echo    $GSDLHOME/apache-httpd/$GSDLOS/bin/httpd
     139   echo The Apache error log is at:
     140   echo    $GSDLHOME/apache-httpd/$GSDLOS/logs/error_log
     141   echo The Apache configuration file template is at:
     142   echo    $GSDLHOME/apache-httpd/$GSDLOS/conf/httpd.conf.in
     143   echo This is used to generate:
     144   echo    $GSDLHOME/apache-httpd/$GSDLOS/conf/httpd.conf
     145   echo    each time Enter Library is pressed or otherwise activated.
     146   echo ***************************************************************
     147   echo.
     148)
    129149echo.
    130150"%JAVA_EXECUTABLE%" org.greenstone.server.Server2 "%GSDLHOME%" "%serverlang%" %*
  • gsdl/trunk/gs2-server.sh

    r20819 r20896  
    11#!/bin/bash
    2 serverlang=en
     2if [ -z "$serverlang" ]; then
     3    serverlang=en
     4fi
    35
    46java_min_version=1.5.0_00
     
    121123    export PATH=$javahome/bin:$PATH
    122124
     125    # some informative messages to direct the users to the logs
     126    if [ "$serverlang" == "en" -o "x$serverlang" == "x" ]; then
     127    echo "***************************************************************"
     128    echo "Starting the Greenstone Server Interface (GSI)..."
     129    echo
     130    echo "Server log messages go to:"
     131    echo "   $GSDLHOME/etc/logs-gsi/server.log"
     132    echo
     133    echo "Using Apache web server located at:"
     134    echo "   $GSDLHOME/apache-httpd/$GSDLOS/bin/httpd"
     135    echo "The Apache error log is at:"
     136    echo "   $GSDLHOME/apache-httpd/$GSDLOS/logs/error_log"
     137    echo "The Apache configuration file template is at:"
     138    echo "   $GSDLHOME/apache-httpd/$GSDLOS/conf/httpd.conf.in"
     139    echo "This is used to generate:"
     140    echo "   $GSDLHOME/apache-httpd/$GSDLOS/conf/httpd.conf"
     141    echo "   each time Enter Library is pressed or otherwise activated."
     142    echo "***************************************************************"
     143    echo
     144    echo
     145    fi
     146
    123147    if [ "x$silent" == "x" -o "x$silent" != "xtrue" ]; then
    124148        # verbose mode, show all output, but then we can't run the server interface in the background
Note: See TracChangeset for help on using the changeset viewer.