1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
- $helptext = <<<ENDOFHELP
- getvaliddaemons.php - print out a list of valid daemons that should be started
- by the startdaemons script
- ENDOFHELP;
- error_reporting(E_ALL & ~E_STRICT & ~E_NOTICE);
- require_once INSTALLDIR.'/scripts/commandline.inc';
- $daemons = array();
- if (common_config('queue', 'daemon')) {
- $daemons[] = INSTALLDIR.'/scripts/queuedaemon.php';
- }
- if (Event::handle('GetValidDaemons', array(&$daemons))) {
- foreach ($daemons as $daemon) {
- print $daemon . ' ';
- }
- print "\n";
- }
|