 09f3d0bb7e
			
		
	
	09f3d0bb7e
	
	
	
		
			
			Summary: Ref T7352. This changes `phd` to pass configuration to overseers over stdin. We still run one overseer per daemon. The "status" stuff needs some cleanup, but it's mostly just UI/cosmetic. Test Plan: - Ran `phd debug`, `phd launch`, `phd start`, `phd status`, `phd stop`, etc. - Verified PID files write in a reasonable format. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T7352 Differential Revision: https://secure.phabricator.com/D11855
		
			
				
	
	
		
			19 lines
		
	
	
		
			531 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			531 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env php
 | |
| <?php
 | |
| 
 | |
| // NOTE: This is substantially the same as the libphutil/ "launch_daemon.php"
 | |
| // script, except it loads the Phabricator environment and adds some Phabricator
 | |
| // specific flags.
 | |
| 
 | |
| $root = dirname(dirname(dirname(__FILE__)));
 | |
| require_once $root.'/scripts/__init_script__.php';
 | |
| 
 | |
| $overseer = new PhutilDaemonOverseer($argv);
 | |
| 
 | |
| $bootloader = PhutilBootloader::getInstance();
 | |
| foreach ($bootloader->getAllLibraries() as $library) {
 | |
|   $overseer->addLibrary(phutil_get_library_root($library));
 | |
| }
 | |
| 
 | |
| $overseer->run();
 |