version 1.92, 2003/05/21 11:32:22
|
version 1.93, 2003/05/27 21:37:03
|
|
|
usage.append (" -D [home] - sets pegasus home directory\n"); | usage.append (" -D [home] - sets pegasus home directory\n"); |
#endif | #endif |
#if defined(PEGASUS_OS_TYPE_WINDOWS) | #if defined(PEGASUS_OS_TYPE_WINDOWS) |
usage.append (" -install - installs pegasus as a Windows NT Service\n"); |
usage.append (" -install [name] - installs pegasus as a Windows NT Service\n"); |
usage.append (" -remove - removes pegasus as a Windows NT Service\n"); |
usage.append (" [name] is optional and overrides the\n"); |
usage.append (" -start - starts pegasus as a Windows NT Service\n"); |
usage.append (" default CIM Server Service Name\n"); |
usage.append (" -stop - stops pegasus as a Windows NT Service\n"); |
usage.append (" -remove [name] - removes pegasus as a Windows NT Service\n"); |
|
usage.append (" [name] is optional and overrides the\n"); |
|
usage.append (" default CIM Server Service Name\n"); |
|
usage.append (" -start [name] - starts pegasus as a Windows NT Service\n"); |
|
usage.append (" [name] is optional and overrides the\n"); |
|
usage.append (" default CIM Server Service Name\n"); |
|
usage.append (" -stop [name] - stops pegasus as a Windows NT Service\n"); |
|
usage.append (" [name] is optional and overrides the\n"); |
|
usage.append (" default CIM Server Service Name\n\n"); |
#endif | #endif |
usage.append (" configProperty=value\n"); | usage.append (" configProperty=value\n"); |
usage.append (" - sets CIM Server configuration property\n"); | usage.append (" - sets CIM Server configuration property\n"); |
|
|
// | // |
// Install as a NT service | // Install as a NT service |
// | // |
if(cimserver_install_nt_service()) |
char *opt_arg = NULL; |
|
if (i+1 < argc) |
|
{ |
|
opt_arg = argv[i+1]; |
|
|
|
} |
|
if(cimserver_install_nt_service(opt_arg)) |
{ | { |
cout << "\nPegasus installed as NT Service"; | cout << "\nPegasus installed as NT Service"; |
exit(0); | exit(0); |
|
|
// | // |
// Remove Pegasus as an NT service | // Remove Pegasus as an NT service |
// | // |
if(cimserver_remove_nt_service()) |
char *opt_arg = NULL; |
|
if (i+1 < argc) |
|
{ |
|
opt_arg = argv[i+1]; |
|
} |
|
if(cimserver_remove_nt_service(opt_arg)) |
{ | { |
cout << "\nPegasus removed as NT Service"; | cout << "\nPegasus removed as NT Service"; |
exit(0); | exit(0); |
|
|
// | // |
// Start as a NT service | // Start as a NT service |
// | // |
if(cimserver_start_nt_service()) |
char *opt_arg = NULL; |
|
if (i+1 < argc) |
|
{ |
|
opt_arg = argv[i+1]; |
|
} |
|
if(cimserver_start_nt_service(opt_arg)) |
{ | { |
cout << "\nPegasus started as NT Service"; | cout << "\nPegasus started as NT Service"; |
exit(0); | exit(0); |
|
|
// | // |
// Stop as a NT service | // Stop as a NT service |
// | // |
if(cimserver_stop_nt_service()) |
char *opt_arg = NULL; |
|
if (i+1 < argc) |
|
{ |
|
opt_arg = argv[i+1]; |
|
} |
|
if(cimserver_stop_nt_service(opt_arg)) |
{ | { |
cout << "\nPegasus stopped as NT Service"; | cout << "\nPegasus stopped as NT Service"; |
exit(0); | exit(0); |