123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?php
- define('INSTALLDIR', dirname(__DIR__));
- define('PUBLICDIR', INSTALLDIR . DIRECTORY_SEPARATOR . 'public');
- $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";
- }
|