mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 00:04:05 +02:00
BackgroundDaemon: set first ready, then running
This commit is contained in:
parent
ab8c8b041d
commit
aef10a5f80
@ -76,6 +76,10 @@ class BackgroundDaemon
|
|||||||
$this->jobRunner = new JobRunner($this->loop);
|
$this->jobRunner = new JobRunner($this->loop);
|
||||||
$this->systemd = $this->eventuallyInitializeSystemd();
|
$this->systemd = $this->eventuallyInitializeSystemd();
|
||||||
$this->processState->setSystemd($this->systemd);
|
$this->processState->setSystemd($this->systemd);
|
||||||
|
if ($this->systemd) {
|
||||||
|
$this->systemd->setReady();
|
||||||
|
}
|
||||||
|
$this->setState('ready');
|
||||||
$this->processDetails = $this
|
$this->processDetails = $this
|
||||||
->initializeProcessDetails($this->systemd)
|
->initializeProcessDetails($this->systemd)
|
||||||
->registerProcessList($this->jobRunner->getProcessList());
|
->registerProcessList($this->jobRunner->getProcessList());
|
||||||
@ -90,9 +94,7 @@ class BackgroundDaemon
|
|||||||
->register($this->jobRunner)
|
->register($this->jobRunner)
|
||||||
->register($this->logProxy)
|
->register($this->logProxy)
|
||||||
->run($this->loop);
|
->run($this->loop);
|
||||||
if ($this->systemd) {
|
$this->setState('running');
|
||||||
$this->systemd->setReady();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user