harness: clear stale needs-login sentinel on healthy boot (#682) on unified binary
This commit is contained in:
parent
dcaf1838e1
commit
022afc794b
1 changed files with 6 additions and 0 deletions
|
|
@ -143,6 +143,9 @@ async fn agent_serve_main(socket: &Path, poll_ms: u64) -> Result<()> {
|
|||
));
|
||||
match initial {
|
||||
LoginState::Online => {
|
||||
// Clear any stale `hyperhive-needs-login` sentinel left
|
||||
// over from a prior boot (closes #682, see #688).
|
||||
bus.emit_status("online");
|
||||
agent_serve_loop(
|
||||
socket,
|
||||
Duration::from_millis(poll_ms),
|
||||
|
|
@ -466,6 +469,9 @@ async fn manager_serve_main(socket: &Path, poll_ms: u64) -> Result<()> {
|
|||
tokio::spawn(hive_ag3nt::forge_notify::run(socket.to_path_buf(), true));
|
||||
match initial {
|
||||
LoginState::Online => {
|
||||
// Clear any stale `hyperhive-needs-login` sentinel left
|
||||
// over from a prior boot (closes #682, see #688).
|
||||
bus.emit_status("online");
|
||||
manager_serve_loop(
|
||||
socket,
|
||||
Duration::from_millis(poll_ms),
|
||||
|
|
|
|||
Loading…
Reference in a new issue