Changeset 29594 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- May 18, 2010 7:45:58 AM (15 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxService
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxService.cpp
r29438 r29594 110 110 static int VBoxServiceUsage(void) 111 111 { 112 RTPrintf("usage: %s [-f|--foreground] [-v|--verbose] [-i|--interval <seconds>]\n" 113 " [--disable-<service>] [--enable-<service>] [-h|-?|--help]\n", g_pszProgName); 114 #ifdef RT_OS_WINDOWS 115 RTPrintf(" [-r|--register] [-u|--unregister]\n"); 116 #endif 117 for (unsigned j = 0; j < RT_ELEMENTS(g_aServices); j++) 118 RTPrintf(" %s\n", g_aServices[j].pDesc->pszUsage); 112 RTPrintf("Usage:\n" 113 " %-12s [-f|--foreground] [-v|--verbose] [-i|--interval <seconds>]\n" 114 " [--disable-<service>] [--enable-<service>] [-h|-?|--help]\n", g_pszProgName); 115 #ifdef RT_OS_WINDOWS 116 RTPrintf(" [-r|--register] [-u|--unregister]\n"); 117 #endif 118 for (unsigned j = 0; j < RT_ELEMENTS(g_aServices); j++) 119 if (g_aServices[j].pDesc->pszUsage) 120 RTPrintf("%s\n", g_aServices[j].pDesc->pszUsage); 119 121 RTPrintf("\n" 120 122 "Options:\n" 121 " -i | --interval 122 " -f | --foreground 123 " -v | --verbose 124 " -h | -? | --help 123 " -i | --interval The default interval.\n" 124 " -f | --foreground Don't daemonzie the program. For debugging.\n" 125 " -v | --verbose Increment the verbosity level. For debugging.\n" 126 " -h | -? | --help Show this message and exit with status 1.\n" 125 127 ); 126 128 #ifdef RT_OS_WINDOWS 127 RTPrintf(" -r | --register 128 " -u | --unregister 129 RTPrintf(" -r | --register Installs the service.\n" 130 " -u | --unregister Uninstall service.\n"); 129 131 #endif 130 132 131 133 RTPrintf("\n" 132 "Service 133 for (unsigned j = 0; j < RT_ELEMENTS(g_aServices); j++) 134 { 135 RTPrintf(" --enable-%-1 0s Enables the %s service. (default)\n", g_aServices[j].pDesc->pszName, g_aServices[j].pDesc->pszName);136 RTPrintf(" --disable-%- 9s Disables the %s service.\n", g_aServices[j].pDesc->pszName, g_aServices[j].pDesc->pszName);134 "Service-specific options:\n"); 135 for (unsigned j = 0; j < RT_ELEMENTS(g_aServices); j++) 136 { 137 RTPrintf(" --enable-%-14s Enables the %s service. (default)\n", g_aServices[j].pDesc->pszName, g_aServices[j].pDesc->pszName); 138 RTPrintf(" --disable-%-13s Disables the %s service.\n", g_aServices[j].pDesc->pszName, g_aServices[j].pDesc->pszName); 137 139 if (g_aServices[j].pDesc->pszOptions) 138 140 RTPrintf("%s", g_aServices[j].pDesc->pszOptions); … … 377 379 { 378 380 int rc = VINF_SUCCESS; 379 intiMain = VBoxServiceGetStartedServices();381 unsigned iMain = VBoxServiceGetStartedServices(); 380 382 381 383 for (unsigned j = 0; j < RT_ELEMENTS(g_aServices); j++) -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControl.cpp
r29547 r29594 386 386 "Host-driven Guest Control", 387 387 /* pszUsage. */ 388 " [--control-interval <ms>]"388 " [--control-interval <ms>]" 389 389 , 390 390 /* pszOptions. */ 391 " --control-interval Specifies the interval at which to check for\n"392 " new control commands. The default is 1000 ms.\n"391 " --control-interval Specifies the interval at which to check for\n" 392 " new control commands. The default is 1000 ms.\n" 393 393 , 394 394 /* methods */ -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceTimeSync.cpp
r28800 r29594 624 624 "Time synchronization", 625 625 /* pszUsage. */ 626 " [--timesync-interval <ms>] [--timesync-min-adjust <ms>]"627 " [--timesync-latency-factor <x>] [--timesync-max-latency <ms>]"628 " [--timesync-set-threshold <ms>] [--timesync-set-start]"626 " [--timesync-interval <ms>] [--timesync-min-adjust <ms>]\n" 627 " [--timesync-latency-factor <x>] [--timesync-max-latency <ms>]\n" 628 " [--timesync-set-threshold <ms>] [--timesync-set-start]" 629 629 , 630 630 /* pszOptions. */ 631 " --timesync-interval Specifies the interval at which to synchronize the\n" 632 " time with the host. The default is 10000 ms.\n" 633 " --timesync-min-adjust\n" 634 " The minimum absolute drift value measured in\n" 635 " milliseconds to make adjustments for.\n" 636 " The default is 1000 ms on OS/2 and 100 ms elsewhere.\n" 631 " --timesync-interval Specifies the interval at which to synchronize the\n" 632 " time with the host. The default is 10000 ms.\n" 633 " --timesync-min-adjust The minimum absolute drift value measured in\n" 634 " milliseconds to make adjustments for.\n" 635 " The default is 1000 ms on OS/2 and 100 ms elsewhere.\n" 637 636 " --timesync-latency-factor\n" 638 " The factor to multiply the time query latency with to\n" 639 " calculate the dynamic minimum adjust time.\n" 640 " The default is 8 times.\n" 641 " --timesync-max-latency\n" 642 " The max host timer query latency to accept.\n" 643 " The default is 250 ms.\n" 637 " The factor to multiply the time query latency with\n" 638 " to calculate the dynamic minimum adjust time.\n" 639 " The default is 8 times.\n" 640 " --timesync-max-latency The max host timer query latency to accept.\n" 641 " The default is 250 ms.\n" 644 642 " --timesync-set-threshold\n" 645 " The absolute drift threshold, given as milliseconds,\n" 646 " where to start setting the time instead of trying to\n" 647 " adjust it. The default is 20 min.\n" 648 " --timesync-set-start\n" 649 " Set the time when starting the time sync service.\n" 643 " The absolute drift threshold, given as milliseconds,\n" 644 " where to start setting the time instead of trying to\n" 645 " adjust it. The default is 20 min.\n" 646 " --timesync-set-start Set the time when starting the time sync service.\n" 650 647 , 651 648 /* methods */ -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo.cpp
r29398 r29594 621 621 "Virtual Machine Information", 622 622 /* pszUsage. */ 623 " [--vminfo-interval <ms>]"623 " [--vminfo-interval <ms>]" 624 624 , 625 625 /* pszOptions. */ 626 " --vminfo-interval Specifies the interval at which to retrieve the\n"627 " VM information. The default is 10000 ms.\n"626 " --vminfo-interval Specifies the interval at which to retrieve the\n" 627 " VM information. The default is 10000 ms.\n" 628 628 , 629 629 /* methods */
Note:
See TracChangeset
for help on using the changeset viewer.