Changeset 32567 in vbox
- Timestamp:
- Sep 16, 2010 2:47:42 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/webservice/vboxweb.cpp
r32388 r32567 162 162 { "--keepalive", 'k', RTGETOPT_REQ_UINT32 }, 163 163 { "--verbose", 'v', RTGETOPT_REQ_NOTHING }, 164 { "--pidfile", 'P', RTGETOPT_REQ_STRING }, 164 165 { "--logfile", 'F', RTGETOPT_REQ_STRING }, 165 166 }; … … 217 218 case 'v': 218 219 pcszDescr = "Be verbose."; 220 break; 221 222 case 'P': 223 pcszDescr = "Name of the PID file which is created when the daemon was started."; 219 224 break; 220 225 … … 634 639 635 640 int c; 641 const char *pszPidFile = NULL; 636 642 RTGETOPTUNION ValueUnion; 637 643 RTGETOPTSTATE GetState; … … 668 674 } 669 675 676 case 'P': 677 pszPidFile = ValueUnion.psz; 678 break; 679 670 680 case 'T': 671 681 g_cMaxWorkerThreads = ValueUnion.u32; … … 702 712 if (g_fDaemonize) 703 713 { 704 rc = RTProcDaemonizeUsingFork(false /* fNoChDir */, false /* fNoClose */, NULL);714 rc = RTProcDaemonizeUsingFork(false /* fNoChDir */, false /* fNoClose */, pszPidFile); 705 715 if (RT_FAILURE(rc)) 706 716 return RTMsgErrorExit(RTEXITCODE_FAILURE, "failed to daemonize, rc=%Rrc. exiting.", rc);
Note:
See TracChangeset
for help on using the changeset viewer.