Ignore:
Timestamp:
23/09/2007 10:18:20 (5 years ago)
Author:
chris
Message:

Use the specified service name when installing and removing the service.

Pass the service name on the service command line, and use it for event
log messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/chris/general/bin/bbackupd/BackupDaemon.cpp

    r1855 r1856  
    129129        , mInstallService(false), 
    130130          mRemoveService(false), 
    131           mRunAsService(false) 
     131          mRunAsService(false), 
     132          mServiceName("bbackupd") 
    132133        #endif 
    133134{ 
     
    348349        if (mInstallService) 
    349350        { 
    350                 return InstallService(rConfigFileName.c_str()); 
     351                return InstallService(rConfigFileName.c_str(), mServiceName); 
    351352        } 
    352353 
    353354        if (mRemoveService) 
    354355        { 
    355                 return RemoveService(); 
    356         } 
     356                return RemoveService(mServiceName); 
     357        } 
     358 
     359        Logging::SetProgramName("Box Backup (" + mServiceName + ")"); 
    357360 
    358361        int returnCode; 
Note: See TracChangeset for help on using the changeset viewer.