Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit e74903f

Browse files
author
Andronik Ordian
committed
Revert "prevent silent errors in daemon mode, closes #9367 (#9946)"
This reverts commit 52d5278.
1 parent 7c0d894 commit e74903f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

parity/run.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,12 @@ fn execute_impl<Cr, Rr>(cmd: RunCmd, logger: Arc<RotatingLogger>, on_client_rq:
544544
// set network path.
545545
net_conf.net_config_path = Some(db_dirs.network_path().to_string_lossy().into_owned());
546546

547+
// run in daemon mode
548+
if let Some(pid_file) = cmd.daemon {
549+
info!("Running as a daemon process!");
550+
daemonize(pid_file)?;
551+
}
552+
547553
let restoration_db_handler = db::restoration_db_handler(&client_path, &client_config);
548554
let client_db = restoration_db_handler.open(&client_path)
549555
.map_err(|e| format!("Failed to open database {:?}", e))?;
@@ -809,12 +815,6 @@ fn execute_impl<Cr, Rr>(cmd: RunCmd, logger: Arc<RotatingLogger>, on_client_rq:
809815
client.set_exit_handler(on_client_rq);
810816
updater.set_exit_handler(on_updater_rq);
811817

812-
// run in daemon mode
813-
if let Some(pid_file) = cmd.daemon {
814-
info!("Running as a daemon process!");
815-
daemonize(pid_file)?;
816-
}
817-
818818
Ok(RunningClient {
819819
inner: RunningClientInner::Full {
820820
rpc: rpc_direct,

0 commit comments

Comments
 (0)