Ignore:
Timestamp:
22/09/2007 00:52:08 (5 years ago)
Author:
chris
Message:

Add "-h" and "/?" options to display usage in Daemon.

Extend usage info with service commands in BackupDaemon?.

Disable useless -D, -V and -k options on Windows.

File:
1 edited

Legend:

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

    r1854 r1855  
    3838        #include <process.h> 
    3939#endif 
     40 
     41#include <iostream> 
    4042 
    4143#include "Configuration.h" 
     
    210212// 
    211213// -------------------------------------------------------------------------- 
    212 const char *BackupDaemon::DaemonBanner() const 
    213 { 
    214 #ifndef NDEBUG 
    215         // Don't display banner in debug builds 
    216         return 0; 
    217 #else 
     214std::string BackupDaemon::DaemonBanner() const 
     215{ 
    218216        return BANNER_TEXT("Backup Client"); 
     217} 
     218 
     219void BackupDaemon::Usage() 
     220{ 
     221        this->Daemon::Usage(); 
     222 
     223#ifdef WIN32 
     224        std::cout << 
     225        "  -s         Run as a Windows Service, for internal use only\n" 
     226        "  -i         Install Windows Service (you may want to specify a config file)\n" 
     227        "  -r         Remove Windows Service\n" 
     228        "  -S <name>  Service name for -i and -r options\n"; 
    219229#endif 
    220230} 
Note: See TracChangeset for help on using the changeset viewer.