forked from friendica/friendica-addons
add extcron
This commit is contained in:
parent
2a63618dc7
commit
65011212a8
BIN
extcron.tgz
Normal file
BIN
extcron.tgz
Normal file
Binary file not shown.
21
extcron/extcron.php
Normal file
21
extcron/extcron.php
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Name: external cron
|
||||||
|
* Description: Use external server or service to run poller regularly
|
||||||
|
* Version: 1.0
|
||||||
|
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
|
||||||
|
*
|
||||||
|
* Notes: External service needs to make a web request to http(s)://yoursite/extcron
|
||||||
|
*/
|
||||||
|
|
||||||
|
function extcron_install() {}
|
||||||
|
|
||||||
|
function nsfw_uninstall() {}
|
||||||
|
|
||||||
|
function extcron_module() {}
|
||||||
|
|
||||||
|
function extcron_init(&$a) {
|
||||||
|
proc_run('php','include/poller.php');
|
||||||
|
}
|
Loading…
Reference in a new issue