Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 function __construct($id = null, $daemonize = true, $threads = 1)
 {
     parent::__construct($daemonize);
     if ($id) {
         $this->set_id($id);
     }
     $this->threads = $threads;
 }
Ejemplo n.º 3
0
 /**
  *  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);
     }
 }
Ejemplo n.º 4
0
 /**
  * Airplay constructor.
  */
 function __construct()
 {
     parent::__construct('sshd', 'airplay');
 }
Ejemplo n.º 5
0
 function __construct()
 {
     parent::__construct('pptpd', 'pptpd');
 }
Ejemplo n.º 6
0
 /**
  * Server constructor.
  */
 function __construct()
 {
     parent::__construct('apcupsd', 'apcups');
 }
Ejemplo n.º 7
0
 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;
 }
Ejemplo n.º 9
0
 public function __construct($name = "kiki-maild", $logFacility = LOG_DAEMON)
 {
     parent::__construct($name, $logFacility);
 }