All external poller addons are now deactivated
[friendica-addons.git/.git] / extcron / extcron.php
old mode 100644 (file)
new mode 100755 (executable)
index e3c2120..4405fb4
@@ -5,11 +5,14 @@
  * Name: external cron
  * Description: Use external server or service to run poller regularly
  * Version: 1.0
- * Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
+ * Author: Mike Macgirvin <https://macgirvin.com/profile/mike>
  * 
  * Notes: External service needs to make a web request to http(s)://yoursite/extcron
+ * Status: Unsupported
  */
 
+require_once "mod/worker.php";
+
 function extcron_install() {}
 
 function extcron_uninstall() {}
@@ -17,6 +20,10 @@ function extcron_uninstall() {}
 function extcron_module() {}
 
 function extcron_init(&$a) {
-       proc_run('php','include/poller.php');
+       worker_init($a);
        killme();
+
+       // Deactivated
+       //proc_run('php','include/poller.php');
+       //killme();
 }