function __construct() { $this->params = $this->getArgs(); if (isset($this->params['interval'])) { $this->job_scheduling_interval = $this->params['interval']; } if (isset($this->params['max_workers'])) { $this->max_workers = $this->params['max_workers']; } if (isset($this->params['pid_file_location'])) { $this->pidFileLocation = $this->params['pid_file_location']; } if (isset($this->params['uid'])) { $this->userID = $this->params['uid']; } if (isset($this->params['gid'])) { $this->groupID = $this->params['gid']; } if (isset($this->params['pid_file_location'])) { $this->pidFileLocation = $this->params['pid_file_location']; } $s = owa_coreAPI::serviceSingleton(); $this->jobs = $s->getMap('backgound_jobs'); $this->eq = owa_coreAPI::getEventDispatch(); return parent::__construct(); }
function __construct($id = null, $daemonize = true, $threads = 1) { parent::__construct($daemonize); if ($id) { $this->set_id($id); } $this->threads = $threads; }
/** * Constructor * * @param string $id the name/id of this daemon * @param int $interval sleep this long before doing everything again * @param int $max_children maximum number of child processes at a time * @param boolean $debug debug output flag * * @return void * **/ function __construct($id = null, $interval = 60, $max_children = 2, $debug = null) { parent::__construct(true); // daemonize $this->_interval = $interval; $this->_max_children = $max_children; $this->_debug = $debug; if (isset($id)) { $this->set_id($id); } }
/** * Airplay constructor. */ function __construct() { parent::__construct('sshd', 'airplay'); }
function __construct() { parent::__construct('pptpd', 'pptpd'); }
/** * Server constructor. */ function __construct() { parent::__construct('apcupsd', 'apcups'); }
function __construct() { parent::__construct('squid', 'web_proxy'); }
/** * Конструктор * @param Config $config Настройки демона * @param Logger $log Объект логирования * @param type $inDebug Режим дебага. В нем время летит очень быстро, а тяжелые операции становятся легкими. */ public function BackupDaemon(Config $config, Logger $log, $debugFlag = false) { parent::__construct($log, $debugFlag); $this->config = $config; }
public function __construct($name = "kiki-maild", $logFacility = LOG_DAEMON) { parent::__construct($name, $logFacility); }