]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/getvaliddaemons.php
Merge branch 'testing' into moveaccount
[quix0rs-gnu-social.git] / scripts / getvaliddaemons.php
index 97c230784f73e5be9897bfc536583a6cdd97c900..a332e06b58bc3d270226c08976677d7b405b5f19 100755 (executable)
@@ -1,8 +1,8 @@
 #!/usr/bin/env php
 <?php
 /*
- * Laconica - a distributed open-source microblogging tool
- * Copyright (C) 2008, 2009, Control Yourself, Inc.
+ * StatusNet - the distributed open-source microblogging tool
+ * Copyright (C) 2008, 2009, StatusNet, Inc.
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU Affero General Public License as published by
 define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
 
 $helptext = <<<ENDOFHELP
-getvaliddaemons.php - print out the currently configured PID directory
+getvaliddaemons.php - print out a list of valid daemons that should be started
+by the startdaemons script
 
 ENDOFHELP;
 
 require_once INSTALLDIR.'/scripts/commandline.inc';
 
+$daemons = array();
+
+$daemons[] = INSTALLDIR.'/scripts/queuedaemon.php';
+
 if(common_config('xmpp','enabled')) {
-    echo "xmppdaemon.php jabberqueuehandler.php publicqueuehandler.php ";
-    echo "xmppconfirmhandler.php ";
+    $daemons[] = INSTALLDIR.'/scripts/xmppdaemon.php';
 }
-if(common_config('twitterbridge','enabled')) {
-    echo "twitterstatusfetcher.php ";
+
+if (Event::handle('GetValidDaemons', array(&$daemons))) {
+    foreach ($daemons as $daemon) {
+        print $daemon . ' ';
+    }
+    print "\n";
 }
-echo "ombqueuehandler.php ";
-echo "twitterqueuehandler.php ";
-echo "facebookqueuehandler.php ";
-echo "pingqueuehandler.php ";
-echo "smsqueuehandler.php ";