diff --git a/Zotlabs/Daemon/Master.php b/Zotlabs/Daemon/Master.php deleted file mode 100644 index 18da4a5dc..000000000 --- a/Zotlabs/Daemon/Master.php +++ /dev/null @@ -1,41 +0,0 @@ - $arr, + 'long_running' => self::$long_running + ]; + + call_hooks('daemon_summon', $hookinfo); + + $arr = $hookinfo['argv']; + $argc = count($arr); + + if ((! is_array($arr) || ($argc < 1))) { + logger("Summon handled by hook.", LOGGER_DEBUG); + return; + } + proc_run('php','Zotlabs/Daemon/Run.php',$arr); } static public function Release($argc,$argv) { cli_startup(); + + $hookinfo = [ + 'argv' => $argv, + 'long_running' => self::$long_running + ]; + + call_hooks('daemon_release', $hookinfo); + + $argv = $hookinfo['argv']; + $argc = count($argv); + + if ((! is_array($argv) || ($argc < 1))) { + logger("Release handled by hook.", LOGGER_DEBUG); + return; + } + logger('Run: release: ' . print_r($argv,true), LOGGER_ALL,LOG_DEBUG); $cls = '\\Zotlabs\\Daemon\\' . $argv[0]; $cls::run($argc,$argv); diff --git a/boot.php b/boot.php index c8893d09c..371e7b5ea 100755 --- a/boot.php +++ b/boot.php @@ -16,7 +16,7 @@ use Zotlabs\Daemon\Run; * @brief This file defines some global constants and includes the central App class. */ -define ( 'STD_VERSION', '21.01.25' ); +define ( 'STD_VERSION', '21.01.28' ); define ( 'ZOT_REVISION', '6.0' ); define ( 'DB_UPDATE_VERSION', 1247 );