Ignore:
Timestamp:
08/24/10 15:00:17 (21 months ago)
Author:
jay
Message:

-- fixed bug in starting server normally.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/win32service/win32service/src/svc/svc.cpp

    r97 r101  
    2828    if( lstrcmpi( argv[1], TEXT("installService")) == 0 ) 
    2929    { 
    30                 if(GetSvcRegistry() != REGIST_ERROR) 
     30                if(SvcRegistry(ADD_KEY) != REGIST_ERROR) 
    3131                        SvcInstall(); 
    3232                else 
     
    6565                if ( argc == 1 ) //if no argument, assume that rtmpserver is started normally 
    6666                { 
    67                         if (!DoQuerySvc){ 
     67                        if (!DoQuerySvc()){ 
    6868                                printf("Server will start normally.\n\n"); 
    69                                 rtmpserver(GetSvcRegistry()); 
     69                                rtmpserver(SvcRegistry(GET_KEY_VALUE)); 
    7070                                return; 
    7171                        }else{ 
    7272                                printf("\nERROR: Server cannot be started normally because the service described above is already installed. .\n\n"); 
    7373                                printf("Start/Stop the server by starting/stopping the service.\n\n"); 
    74                                 printf("To start server normally, enter 'uninstallService' command to delete the service.\n\n"); 
    7574                                return; 
    7675                        } 
     
    9695    printf("\t  stopService\n"); 
    9796        printf("Run as stand-alone:\n"); 
    98         printf("\twin32service <configfile path>\n"); 
    99         printf("\twin32service --use-implicit-console-appender\n"); 
     97        printf("\twin32service\n"); 
    10098} 
    10199// 
Note: See TracChangeset for help on using the changeset viewer.