public function init() { Daemon::addDefaultSettings(array('mod' . $this->modname . 'enable' => 0, 'mod' . $this->modname . 'ipcpath' => '/tmp/WsOverComet-%s.sock')); if (Daemon::$settings['mod' . $this->modname . 'enable']) { $this->wss = Daemon::$appResolver->getInstanceByAppName('WebSocketServer'); } }
public function init() { Daemon::addDefaultSettings(array('mod' . $this->modname . 'upserver' => '127.0.0.1:3306', 'mod' . $this->modname . 'listen' => 'tcp://0.0.0.0', 'mod' . $this->modname . 'listenport' => 3307, 'mod' . $this->modname . 'protologging' => 0, 'mod' . $this->modname . 'enable' => 0)); if (Daemon::$settings['mod' . $this->modname . 'enable']) { Daemon::log(__CLASS__ . ' up.'); $this->bindSockets(Daemon::$settings['mod' . $this->modname . 'listen'], Daemon::$settings['mod' . $this->modname . 'listenport']); } }
public function init() { Daemon::addDefaultSettings(array('mod' . $this->modname . 'listen' => 'tcp://0.0.0.0', 'mod' . $this->modname . 'listenport' => 844, 'mod' . $this->modname . 'enable' => 0)); if (Daemon::$settings['mod' . $this->modname . 'enable']) { Daemon::log(__CLASS__ . ' up.'); $this->bindSockets(Daemon::$settings['mod' . $this->modname . 'listen'], Daemon::$settings['mod' . $this->modname . 'listenport']); } }
public function init() { Daemon::addDefaultSettings(array('mod' . $this->modname . 'server' => 'pg://root@127.0.0.1', 'mod' . $this->modname . 'port' => 5432, 'mod' . $this->modname . 'protologging' => 0, 'mod' . $this->modname . 'enable' => 0)); if (Daemon::$settings['mod' . $this->modname . 'enable']) { Daemon::log(__CLASS__ . ' up.'); $this->ready = TRUE; } }
public function init() { Daemon::addDefaultSettings(array('mod' . $this->modname . 'listen' => 'tcp://0.0.0.0', 'mod' . $this->modname . 'listenport' => 833, 'mod' . $this->modname . 'allowedclients' => '127.0.0.1', 'mod' . $this->modname . 'enable' => 0)); if (Daemon::$settings['mod' . $this->modname . 'enable']) { Daemon::log(__CLASS__ . ' up.'); $this->allowedClients = explode(',', Daemon::$settings['mod' . $this->modname . 'allowedclients']); $this->bindSockets(Daemon::$settings['mod' . $this->modname . 'listen'], Daemon::$settings['mod' . $this->modname . 'listenport']); } }
public function init() { Daemon::addDefaultSettings(array('mod' . $this->modname . 'listen' => 'tcp://0.0.0.0', 'mod' . $this->modname . 'listen-port' => 80, 'mod' . $this->modname . 'log-events' => 0, 'mod' . $this->modname . 'log-queue' => 0, 'mod' . $this->modname . 'send-file' => 0, 'mod' . $this->modname . 'send-file-dir' => '/dev/shm', 'mod' . $this->modname . 'send-file-prefix' => 'http-', 'mod' . $this->modname . 'send-file-onlybycommand' => 0, 'mod' . $this->modname . 'keepalive' => '0s', 'mod' . $this->modname . 'enable' => 0)); Daemon::$parsedSettings['mod' . $this->modname . 'keepalive'] = Daemon::parseTime(Daemon::$settings['mod' . $this->modname . 'keepalive']); if (Daemon::$settings['mod' . $this->modname . 'enable']) { Daemon::log(__CLASS__ . ' up.'); $this->bindSockets(Daemon::$settings['mod' . $this->modname . 'listen'], Daemon::$settings['mod' . $this->modname . 'listenport']); } }
public function init() { Daemon::addDefaultSettings(array('mod' . $this->modname . 'listen' => 'tcp://0.0.0.0', 'mod' . $this->modname . 'listenport' => 843, 'mod' . $this->modname . 'file' => Daemon::$dir . '/conf/crossdomain.xml', 'mod' . $this->modname . 'enable' => 0)); if (Daemon::$settings['mod' . $this->modname . 'enable']) { Daemon::log(__CLASS__ . ' up.'); $this->bindSockets(Daemon::$settings['mod' . $this->modname . 'listen'], Daemon::$settings['mod' . $this->modname . 'listenport']); $this->update(); } }
public function init() { Daemon::addDefaultSettings(array('mod' . $this->modname . 'listen' => 'tcp://127.0.0.1,unix:/tmp/phpdaemon.fcgi.sock', 'mod' . $this->modname . 'listen-port' => 9000, 'mod' . $this->modname . 'allowed-clients' => '127.0.0.1', 'mod' . $this->modname . 'log-records' => 0, 'mod' . $this->modname . 'log-records-miss' => 0, 'mod' . $this->modname . 'log-events' => 0, 'mod' . $this->modname . 'log-queue' => 0, 'mod' . $this->modname . 'send-file' => 0, 'mod' . $this->modname . 'send-file-dir' => '/dev/shm', 'mod' . $this->modname . 'send-file-prefix' => 'fcgi-', 'mod' . $this->modname . 'send-file-onlybycommand' => 0, 'mod' . $this->modname . 'keepalive' => '0s', 'mod' . $this->modname . 'enable' => 0)); Daemon::$parsedSettings['mod' . $this->modname . 'keepalive'] = Daemon::parseTime(Daemon::$settings['mod' . $this->modname . 'keepalive']); if (Daemon::$settings['mod' . $this->modname . 'enable']) { Daemon::log(__CLASS__ . ' up.'); $this->allowedClients = explode(',', Daemon::$settings['mod' . $this->modname . 'allowedclients']); $this->bindSockets(Daemon::$settings['mod' . $this->modname . 'listen'], Daemon::$settings['mod' . $this->modname . 'listenport']); } }
public function init() { Daemon::addDefaultSettings(array('mod' . $this->modname . 'listen' => 'tcpstream://127.0.0.1:844', 'mod' . $this->modname . 'enable' => 0)); if (Daemon::$settings['mod' . $this->modname . 'enable']) { Daemon::log(__CLASS__ . ' up.'); require_once Daemon::$dir . '/lib/asyncRTEPclient.class.php'; $this->client = new AsyncRTEPclient(); $this->client->addServer(Daemon::$settings[$k = 'mod' . $this->modname . 'addr']); $this->client->trace = TRUE; } }
public function init() { Daemon::addDefaultSettings(array('mod' . $this->modname . 'dbname' => 'chat', 'mod' . $this->modname . 'adminpassword' => '', 'mod' . $this->modname . 'enable' => 0)); if (Daemon::$settings['mod' . $this->modname . 'enable']) { Daemon::log(__CLASS__ . ' up.'); $this->db = Daemon::$appResolver->getInstanceByAppName('MongoClient'); $this->dbname =& Daemon::$settings[$k = 'mod' . $this->modname . 'dbname']; $this->tags = array(); $this->minMsgInterval = 1; } }
public function init() { Daemon::addDefaultSettings(array('mod' . $this->modname . 'enable' => 0)); if (Daemon::$settings['mod' . $this->modname . 'enable']) { $this->LockClient = Daemon::$appResolver->getInstanceByAppName('LockClient'); Daemon::log(__CLASS__ . ' up.'); $this->db = Daemon::$appResolver->getInstanceByAppName('MongoClient'); $this->cache = Daemon::$appResolver->getInstanceByAppName('MemcacheClient'); $this->RTEPClient = Daemon::$appResolver->getInstanceByAppName('RTEPClient'); } }
public function init() { Daemon::addDefaultSettings(array('mod' . $this->modname . 'servers' => '127.0.0.1', 'mod' . $this->modname . 'port' => 11211, 'mod' . $this->modname . 'prefix' => '', 'mod' . $this->modname . 'enable' => 0)); $this->prefix =& Daemon::$settings['mod' . $this->modname . 'prefix']; if (Daemon::$settings['mod' . $this->modname . 'enable']) { Daemon::log(__CLASS__ . ' up.'); $servers = explode(',', Daemon::$settings['mod' . $this->modname . 'servers']); foreach ($servers as $s) { $e = explode(':', $s); $this->addServer($e[0], isset($e[1]) ? $e[1] : NULL); } } }
public function init() { Daemon::addDefaultSettings(array('mod' . $this->modname . 'servers' => '127.0.0.1', 'mod' . $this->modname . 'port' => 27017, 'mod' . $this->modname . 'enable' => 0)); $this->cache = Daemon::$appResolver->getInstanceByAppName('MemcacheClient'); if (Daemon::$settings['mod' . $this->modname . 'enable']) { Daemon::log(__CLASS__ . ' up.'); $servers = explode(',', Daemon::$settings['mod' . $this->modname . 'servers']); foreach ($servers as $s) { $e = explode(':', $s); $this->addServer($e[0], isset($e[1]) ? $e[1] : NULL); } } }
public function init() { Daemon::addDefaultSettings(array('mod' . $this->modname . 'servers' => '127.0.0.1', 'mod' . $this->modname . 'port' => 4730, 'mod' . $this->modname . 'enable' => 0)); if (!isset(Daemon::$settings[$k = 'mod' . $this->modname . 'enable'])) { Daemon::$settings[$k] = 0; } if (Daemon::$settings['mod' . $this->modname . 'enable']) { Daemon::log(__CLASS__ . ' up.'); $this->client = new GearmanClient(); $this->worker = new GearmanWorker(); foreach (explode(',', Daemon::$settings['mod' . $this->modname . 'servers']) as $address) { $e = explode(':', $address, 2); $this->client->addServer($e[0], isset($e[1]) ? $e[1] : Daemon::$settings['mod' . $this->modname . 'port']); $this->worker->addServer($e[0], isset($e[1]) ? $e[1] : Daemon::$settings['mod' . $this->modname . 'port']); } $this->interval = $this->pushRequest(new GearmanNodeInterval($this, $this)); } }
public function init() { Daemon::addDefaultSettings(array('mod' . $this->modname . 'indexfiles' => 'index.html/index.htm')); $this->indexFiles = explode('/', Daemon::$settings['mod' . $this->modname . 'indexfiles']); }
public function onReady() { Daemon::addDefaultSettings(array('mod' . $this->modname . 'allow-override-binpath' => TRUE, 'mod' . $this->modname . 'allow-override-cwd' => TRUE, 'mod' . $this->modname . 'allow-override-chroot' => TRUE, 'mod' . $this->modname . 'allow-override-user' => TRUE, 'mod' . $this->modname . 'allow-override-group' => TRUE, 'mod' . $this->modname . 'cwd' => NULL, 'mod' . $this->modname . 'output-errors' => TRUE, 'mod' . $this->modname . 'errlog-file' => __DIR__ . '/cgi-error.log')); $this->cwd = Daemon::$settings['mod' . $this->modname . 'cwd']; }