Make safekeeper exit code 0.

We don't have any useful graceful shutdown mode, so immediate one is normal.

https://github.com/neondatabase/neon/issues/2956
This commit is contained in:
Arseny Sher
2022-12-08 14:21:30 +04:00
committed by Arseny Sher
parent 6c8b2af1f8
commit 28667ce724

View File

@@ -264,10 +264,10 @@ fn start_safekeeper(mut conf: SafeKeeperConf, given_id: Option<NodeId>, init: bo
signals.handle(|signal| {
// TODO: implement graceful shutdown with joining threads etc
info!(
"Got {}. Terminating in immediate shutdown mode",
"received {}, terminating in immediate shutdown mode",
signal.name()
);
std::process::exit(111);
std::process::exit(0);
})
}