Changeset 19004

Show
Ignore:
Timestamp:
16.04.2009 12:58:16 (11 years ago)
Author:
ak19
Message:

When the local server application doesn't terminate properly and a URL is still left in the glisite.cfg/llssite.cfg file, LocalLibraryServer?.java now on STARTUP launches the server app. Previously gli would not launch the server app in such a case because it assumed the server was still running. This caused the missing server phenomenon: because the url would never be removed from glisite.cfg since the server app would never be run, the server would never be launched from GLI.

Files:
1 modified

Legend:

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

    r19003 r19004  
    182182        running = true; 
    183183 
    184         // on Linux, run the server interface (will work with any server already running) 
    185         if(!Utility.isWindows()) { 
    186             Gatherer.spawnApplication(local_library_server_command, ID); 
    187         } 
     184        // Run the server interface 
     185        Gatherer.spawnApplication(local_library_server_command, ID); 
    188186        return; 
    189187        }