public function sigusr1()
 {
     if (Daemon::$settings['logsignals']) {
         Daemon::log('Worker ' . getmypid() . ' caught SIGUSR1 (re-open log-file).');
     }
     Daemon::openLogs();
 }
Пример #2
0
 /**
  * Handler for the SIGUSR1 (re-open log-file) signal in master process
  * @todo +on & -> protected?
  * @return void
  */
 public function sigusr1()
 {
     if (Daemon::$config->logsignals->value) {
         Daemon::log('Master caught SIGUSR1 (re-open log-file).');
     }
     Daemon::openLogs();
     $this->workers->signal(SIGUSR1);
 }
Пример #3
0
 /**
  * Handler of the SIGUSR1 (re-open log-file) signal in worker process.
  * @return void
  */
 public function sigusr1()
 {
     if (Daemon::$config->logsignals->value) {
         $this->log('caught SIGUSR1 (re-open log-file).');
     }
     Daemon::openLogs();
 }
 public function sigusr1()
 {
     if (Daemon::$settings['logsignals']) {
         Daemon::log('Master caught SIGUSR1 (re-open log-file).');
     }
     Daemon::openLogs();
     $this->collections['workers']->signal(SIGUSR1);
 }
Пример #5
0
 /**
  * Performs initial actions.
  * @return void
  */
 public static function init()
 {
     Daemon::$startTime = time();
     set_time_limit(0);
     ob_start(array('Daemon', 'outputFilter'));
     Daemon::checkSupports();
     Daemon::$initservervar = $_SERVER;
     Daemon::$masters = new ThreadCollection();
     Daemon::$shm_wstate = Daemon::shmop_open(Daemon::$config->pidfile->value, Daemon::$shm_wstate_size, 'wstate');
     Daemon::openLogs();
 }
Пример #6
0
 public static function init()
 {
     Daemon::$startTime = time();
     set_time_limit(0);
     ob_start(array('Daemon', 'outputFilter'));
     Daemon::$initservervar = $_SERVER;
     Daemon::$masters = new threadCollection();
     Daemon::$shm_wstate = Daemon::shmop_open(Daemon::$settings['ipcwstate'], Daemon::$shm_wstate_size, 'wstate');
     Daemon::openLogs();
 }