PHPDaemon/Thread/IPC.php 1 location
|
@@ 293-303 (lines=11) @@
|
290 |
|
* Handler of the SIGHUP (reload config) signal in worker process. |
291 |
|
* @return void |
292 |
|
*/ |
293 |
|
public function sighup() |
294 |
|
{ |
295 |
|
if (Daemon::$config->logsignals->value) { |
296 |
|
$this->log('caught SIGHUP (reload config).'); |
297 |
|
} |
298 |
|
|
299 |
|
if (isset(Daemon::$config->configfile->value)) { |
300 |
|
Daemon::loadConfig(Daemon::$config->configfile->value); |
301 |
|
} |
302 |
|
|
303 |
|
$this->update = true; |
304 |
|
} |
305 |
|
|
306 |
|
/** |
PHPDaemon/Thread/Master.php 1 location
|
@@ 423-433 (lines=11) @@
|
420 |
|
* Handler for the SIGHUP (reload config) signal in master process |
421 |
|
* @return void |
422 |
|
*/ |
423 |
|
protected function sighup() |
424 |
|
{ |
425 |
|
if (Daemon::$config->logsignals->value) { |
426 |
|
$this->log('Caught SIGHUP (reload config).'); |
427 |
|
} |
428 |
|
|
429 |
|
if (isset(Daemon::$config->configfile)) { |
430 |
|
Daemon::loadConfig(Daemon::$config->configfile->value); |
431 |
|
} |
432 |
|
|
433 |
|
$this->signalToChildren(SIGHUP); |
434 |
|
} |
435 |
|
|
436 |
|
/** |
PHPDaemon/Thread/Worker.php 1 location
|
@@ 677-687 (lines=11) @@
|
674 |
|
* Handler of the SIGHUP (reload config) signal in worker process. |
675 |
|
* @return void |
676 |
|
*/ |
677 |
|
protected function sighup() |
678 |
|
{ |
679 |
|
if (Daemon::$config->logsignals->value) { |
680 |
|
$this->log('caught SIGHUP (reload config).'); |
681 |
|
} |
682 |
|
|
683 |
|
if (isset(Daemon::$config->configfile->value)) { |
684 |
|
Daemon::loadConfig(Daemon::$config->configfile->value); |
685 |
|
} |
686 |
|
|
687 |
|
$this->update = true; |
688 |
|
} |
689 |
|
|
690 |
|
/** |