Changeset 20482 for gli


Ignore:
Timestamp:
2009-09-02T17:06:59+12:00 (15 years ago)
Author:
ak19
Message:

Small correction: before prepending cmd start to the command of the script that is to be launched, need to check not just that we're on Windows but also that we're dealing with the apache web server (not persistentServer) and not server.exe.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/greenstone/LocalLibraryServer.java

    r20480 r20482  
    232232    // Spawn local library server process
    233233    String local_library_server_command = local_library_server_file.getAbsolutePath() + getExtraLaunchArguments(llssite_cfg_file);
    234     if(Utility.isWindows()) {
     234    if(Utility.isWindows() && !isPersistentServer) { // launching gs2-server.bat (Windows) needs cmd start
    235235        local_library_server_command = "cmd.exe /c start \"GSI\" " + local_library_server_command;
    236236    }
     
    488488        running = false;
    489489        String local_library_server_command = local_library_server_file.getAbsolutePath() + getExtraLaunchArguments(llssite_cfg_file);
    490         if(Utility.isWindows()) {
     490        if(Utility.isWindows() && !isPersistentServer) { // launching gs2-server.bat (Windows) needs cmd start
    491491            local_library_server_command = "cmd.exe /c start \"GSI\" " + local_library_server_command;
    492492        }
Note: See TracChangeset for help on using the changeset viewer.