fix(matrix): the deferred starter logs the state its boot ended in
A degraded guest still starts the services, and now the journal says so next to the start. The VM test pins the line.
This commit is contained in:
parent
3919de6358
commit
c12e231d32
1 changed files with 9 additions and 3 deletions
|
|
@ -114,8 +114,10 @@ in
|
|||
path = [ pkgs.systemd ];
|
||||
serviceConfig.Type = "simple";
|
||||
script = ''
|
||||
# `degraded` (a unit of the boot failed) exits 1 and is still over.
|
||||
systemctl is-system-running --wait >/dev/null || true
|
||||
# `degraded` (a unit of the boot failed) exits 1 and is still over;
|
||||
# the state goes to the journal next to the start.
|
||||
state=$(systemctl is-system-running --wait || true)
|
||||
echo "swarm-container-deferred-start: the boot ended $state; starting ${lib.concatStringsSep " " cfg.startAfterReady}"
|
||||
systemctl start --no-block ${lib.concatMapStringsSep " " (n: "${n}.service") cfg.startAfterReady}
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue