listen for shutdown signals during nym-node startup (#5879)

this is to avoid situation where the process can't be killed without 'kill -9' because the logic to listen to shutdown signals hasn't been hit yet
This commit is contained in:
Jędrzej Stuczyński
2025-07-14 12:13:40 +01:00
committed by GitHub
parent ebcc658f98
commit ec53b570dc
4 changed files with 56 additions and 9 deletions
@@ -128,6 +128,8 @@ where
}
});
// TODO: if something is blocking during SP startup, the below will wait forever
// we need to introduce additional timeouts here.
let on_start_data = self
.on_start_rx
.await