From ca353dd18e37fc7d2a25fd22927311ec1ebf8285 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Thu, 18 Feb 2016 13:07:57 +0100 Subject: [PATCH] Remove daemonize feature. --- parity/main.rs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/parity/main.rs b/parity/main.rs index d0bc05a08..8af61ca93 100644 --- a/parity/main.rs +++ b/parity/main.rs @@ -31,7 +31,6 @@ extern crate env_logger; extern crate ctrlc; extern crate fdlimit; extern crate target_info; -extern crate daemonize; #[cfg(feature = "rpc")] extern crate ethcore_rpc as rpc; @@ -50,7 +49,6 @@ use ethcore::ethereum; use ethcore::blockchain::CacheSize; use ethsync::EthSync; use target_info::Target; -use daemonize::{Daemonize}; docopt!(Args derive Debug, " Parity. Ethereum Client. @@ -58,7 +56,6 @@ Parity. Ethereum Client. Copyright 2015, 2016 Ethcore (UK) Limited Usage: - parity daemon [options] [ --no-bootstrap | ... ] parity [options] [ --no-bootstrap | ... ] Options: @@ -186,21 +183,6 @@ impl Configuration { print_version(); return; } - if self.args.cmd_daemon { - let daemonize = Daemonize::new() - .pid_file("/tmp/parity.pid") // Every method except `new` and `start` - .chown_pid_file(true) // is optional, see `Daemonize` documentation - .working_directory("/tmp") // for default behaviour. - .user("nobody") - .group("daemon") // Group name - .group(2) // Or group id - .privileged_action(|| "Executed before drop privileges"); - - match daemonize.start() { - Ok(_) => info!("Success, daemonized"), - Err(e) => { error!("{}", e); return; }, - } - } self.execute_client(); }