(file) Return to cimserver.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Server

Diff for /pegasus/src/Server/cimserver.cpp between version 1.149 and 1.150

version 1.149, 2005/02/05 23:01:28 version 1.150, 2005/02/06 21:28:25
Line 47 
Line 47 
 // Modified By: Humberto Rivero (hurivero@us.ibm.com) // Modified By: Humberto Rivero (hurivero@us.ibm.com)
 // //
 // Modified By: Steve Hills (steve.hills@ncr.com) // Modified By: Steve Hills (steve.hills@ncr.com)
   //              Sean Keenan, Hewlett-Packard Company (sean.keenan@hp.com)
 // //
 // Modified By: Amit K Arora, IBM (amitarora@in.ibm.com) - pep 167 // Modified By: Amit K Arora, IBM (amitarora@in.ibm.com) - pep 167
 // //
Line 140 
Line 141 
 # else # else
 #  include "cimserver_unix.cpp" #  include "cimserver_unix.cpp"
 #endif #endif
   #elif defined(PEGASUS_OS_VMS)
   # include "cimserver_vms.cpp"
 #else #else
 # error "Unsupported platform" # error "Unsupported platform"
 #endif #endif
Line 173 
Line 176 
 static const char OPTION_BINDVERBOSE = 'X'; static const char OPTION_BINDVERBOSE = 'X';
 #endif #endif
  
   # if defined(PEGASUS_OS_VMS)
   static const char OPTION_PORT    = 'p';
   
   static const char OPTION_TRACE    = 't';
   #endif
   
 static const String PROPERTY_TIMEOUT = "shutdownTimeout"; static const String PROPERTY_TIMEOUT = "shutdownTimeout";
  
 ConfigManager*    configManager; ConfigManager*    configManager;
Line 478 
Line 487 
             cimserver_exitRC(1);             cimserver_exitRC(1);
 #endif #endif
  
 #if defined(PEGASUS_OS_HPUX) || defined(PEGASUS_PLATFORM_LINUX_GENERIC_GNU) || defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM) || defined(PEGASUS_PLATFORM_SOLARIS_SPARC_CC)  #if defined(PEGASUS_OS_HPUX) || defined(PEGASUS_PLATFORM_LINUX_GENERIC_GNU) \
   || defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM) || defined(PEGASUS_PLATFORM_SOLARIS_SPARC_CC) \
   || defined (PEGASUS_OS_VMS)
             if (kill_rc != -1)             if (kill_rc != -1)
             {             {
                 //l10n - TODO                 //l10n - TODO
Line 637 
Line 648 
                     argc -= 2;                     argc -= 2;
                 }                 }
 #endif #endif
   #if defined(PEGASUS_OS_VMS)
                   else if (*option == OPTION_PORT)
                   {
                       if (i + 1 < argc)
                       {
                           newPortNumber.assign(argv[i + 1]);
                       }
                       else
                       {
                           cout << "Missing argument for option -" << option << endl;
                           exit(0);
                       }
   
                       memmove(&argv[i], &argv[i + 2], (argc-i-1) * sizeof(char*));
                       argc -= 2;
                   }
                   else if (*option == OPTION_TRACE)
                   {
                       if (i + 1 < argc)
                       {
                           pegasusTrace.assign(argv[i + 1]);
                       }
                       else
                       {
                           cout << "Missing argument for option -" << option << endl;
                           exit(0);
                       }
   
                       memmove(&argv[i], &argv[i + 2], (argc-i-1) * sizeof(char*));
                       argc -= 2;
                   }
   #endif
 #if defined(PEGASUS_OS_HPUX) #if defined(PEGASUS_OS_HPUX)
                 //                 //
                 // Check to see if user asked for the version (-X option):                 // Check to see if user asked for the version (-X option):
Line 937 
Line 980 
     {     {
         String httpsPort = configManager->getCurrentValue("httpsPort");         String httpsPort = configManager->getCurrentValue("httpsPort");
         CString portString = httpsPort.getCString();         CString portString = httpsPort.getCString();
   #if defined(PEGASUS_OS_VMS)
   //        if (!(newPortNumber == String::EMPTY))
           if (!(newPortNumber == ""))
           {
             portString = newPortNumber.getCString();
           }
   #endif
         char* end = 0;         char* end = 0;
         Uint32 port = strtol(portString, &end, 10);         Uint32 port = strtol(portString, &end, 10);
         if(!(end != 0 && *end == '\0'))         if(!(end != 0 && *end == '\0'))
Line 956 
Line 1006 
     {     {
         String httpPort = configManager->getCurrentValue("httpPort");         String httpPort = configManager->getCurrentValue("httpPort");
         CString portString = httpPort.getCString();         CString portString = httpPort.getCString();
   #if defined(PEGASUS_OS_VMS)
   //        if (!(newPortNumber == String::EMPTY))
           if (!(newPortNumber == ""))
           {
             portString = newPortNumber.getCString();
           }
   #endif
         char* end = 0;         char* end = 0;
         Uint32 port = strtol(portString, &end, 10);         Uint32 port = strtol(portString, &end, 10);
         if(!(end != 0 && *end == '\0'))         if(!(end != 0 && *end == '\0'))
Line 1075 
Line 1132 
 #endif #endif
  
  
 #if defined(PEGASUS_OS_HPUX) || defined(PEGASUS_PLATFORM_LINUX_GENERIC_GNU) || defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM) || defined(PEGASUS_OS_AIX) || defined(PEGASUS_PLATFORM_SOLARIS_SPARC_CC)  #if defined(PEGASUS_OS_HPUX) || defined(PEGASUS_PLATFORM_LINUX_GENERIC_GNU) \
   || defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM) || defined(PEGASUS_OS_AIX) \
   || defined(PEGASUS_PLATFORM_SOLARIS_SPARC_CC) || defined (PEGASUS_OS_VMS)
     umask(S_IWGRP|S_IWOTH);     umask(S_IWGRP|S_IWOTH);
  
     //     //
Line 1116 
Line 1175 
  
         CimserverHolder cimserverHolder( &server );         CimserverHolder cimserverHolder( &server );
  
   #if defined(PEGASUS_OS_VMS)
           //
           // Enable tracing at highest level
           //
   
           if (!(pegasusTrace == String::EMPTY))
           {
             Tracer::setTraceFile(pegasusTrace.getCString());
             Tracer::setTraceLevel(Tracer::LEVEL4);
             Tracer::setTraceComponents("All");
           }
   #endif
         if (enableHttpConnection)         if (enableHttpConnection)
         {         {
             server.addAcceptor(false, portNumberHttp, false, false);             server.addAcceptor(false, portNumberHttp, false, false);
Line 1200 
Line 1271 
  
         time_t last = 0;         time_t last = 0;
  
 #if defined(PEGASUS_OS_HPUX) || defined(PEGASUS_OS_LINUX) || defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM) || defined(PEGASUS_OS_AIX) || defined(PEGASUS_PLATFORM_SOLARIS_SPARC_CC)  #if defined(PEGASUS_OS_HPUX) || defined(PEGASUS_OS_LINUX) || defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM) \
       || defined(PEGASUS_OS_AIX) || defined(PEGASUS_PLATFORM_SOLARIS_SPARC_CC) \
       || defined(PEGASUS_OS_VMS)
         //         //
         // create a file to indicate that the cimserver has started and         // create a file to indicate that the cimserver has started and
         // save the process id of the cimserver process in the file         // save the process id of the cimserver process in the file
Line 1250 
Line 1323 
             Logger::INFORMATION, "src.Server.cimserver.STOPPED",             Logger::INFORMATION, "src.Server.cimserver.STOPPED",
             "$0 stopped.", PEGASUS_PRODUCT_NAME);             "$0 stopped.", PEGASUS_PRODUCT_NAME);
  
 #if defined(PEGASUS_OS_HPUX) || defined(PEGASUS_PLATFORM_LINUX_GENERIC_GNU) || defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM) || defined(PEGASUS_OS_AIX) || defined(PEGASUS_PLATFORM_SOLARIS_SPARC_CC)  #if defined(PEGASUS_OS_HPUX) || defined(PEGASUS_PLATFORM_LINUX_GENERIC_GNU) \
   || defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM) || defined(PEGASUS_OS_AIX) \
   || defined(PEGASUS_PLATFORM_SOLARIS_SPARC_CC) || defined(PEGASUS_OS_VMS)
         //         //
         // close the file created at startup time to indicate that the         // close the file created at startup time to indicate that the
         // cimserver has terminated normally.         // cimserver has terminated normally.


Legend:
Removed from v.1.149  
changed lines
  Added in v.1.150

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2