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->systemd = $this->eventuallyInitializeSystemd();
|
||||
$this->processState->setSystemd($this->systemd);
|
||||
if ($this->systemd) {
|
||||
$this->systemd->setReady();
|
||||
}
|
||||
$this->setState('ready');
|
||||
$this->processDetails = $this
|
||||
->initializeProcessDetails($this->systemd)
|
||||
->registerProcessList($this->jobRunner->getProcessList());
|
||||
@ -90,9 +94,7 @@ class BackgroundDaemon
|
||||
->register($this->jobRunner)
|
||||
->register($this->logProxy)
|
||||
->run($this->loop);
|
||||
if ($this->systemd) {
|
||||
$this->systemd->setReady();
|
||||
}
|
||||
$this->setState('running');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user