swarm-nats: the auth responder has no start limit, always restarts, and is started after the server's restarts
This commit is contained in:
parent
a95fdc6281
commit
8530a5b7fd
1 changed files with 70 additions and 6 deletions
|
|
@ -225,6 +225,18 @@ let
|
|||
&& lib.hasInfix "[ -s /var/lib/swarm-bao-pki/nats.pem ]" allLocal.systemd.services.swarm-bao-pki.script
|
||||
&& lib.hasInfix "swarm-nats \"\" clientAuth" allLocal.systemd.services.swarm-bao-pki.script;
|
||||
}
|
||||
{
|
||||
# The leaf rotation restarts the server; the responder, stopped when
|
||||
# the server failed, is cleared and started after it.
|
||||
name = "the leaf rotation starts the responder after restarting the server";
|
||||
ok =
|
||||
let
|
||||
s = leafUnit.script;
|
||||
in
|
||||
lib.hasInfix "restart nats.service" s
|
||||
&& lib.hasInfix "reset-failed swarm-nats-auth.service" s
|
||||
&& lib.hasInfix "start --no-block swarm-nats-auth.service" s;
|
||||
}
|
||||
{
|
||||
# The hive's own reader is not the queue's identity, and no path is
|
||||
# derived from it: a queue host without the store that holds only the
|
||||
|
|
|
|||
Loading…
Reference in a new issue