Show
Ignore:
Timestamp:
18.08.2010 21:13:11 (10 years ago)
Author:
ak19
Message:

More changes for making the collectdir movable (ticket 152): (1) Changes to GLI code so that llssite and glisite are updated to contain the COLLECTHOME property to tell server.exe where the new collect dir is. (2) server.exe must be told that it needs to restart (so it can read the new collecthome).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/recpt/configaction.cpp

    r16321 r22677  
    3131#  include <windows.h> 
    3232#endif 
     33 
     34// constant for restart/reconfigure windows message (same as in w32server/fnord) 
     35// http://msdn.microsoft.com/en-us/library/ms644931%28v=VS.85%29.aspx on WM_USER 
     36// (also RegisterWindowMessage Function at http://msdn.microsoft.com/en-us/library/ms644947%28v=VS.85%29.aspx 
     37// http://msdn.microsoft.com/en-us/library/ms644927%28v=VS.85%29.aspx) 
     38#define WM_RESTART WM_USER+1 
    3339 
    3440configaction::configaction () { 
     
    8793    textout << "configured release-collection\n"; 
    8894 
     95  } else if ((args["cmd"] == "restart")) { 
     96    if(!args["c"].empty()) { 
     97        remove_colservr(args["c"], logout); 
     98        textout << "configured release-collection for reconfigure-restart\n"; 
     99    } 
     100    textout << "reconfigure-restart\n"; 
     101#ifdef GSDL_LOCAL_LIBRARY 
     102    HWND gw = FindWindow("Greenstone Digital Library Software", 
     103             "Greenstone Digital Library Software"); 
     104    PostMessage(gw, WM_RESTART, 0, 0); 
     105#endif 
    89106  } else if (args["cmd"] == "kill") { 
    90107    textout << "killed\n";