From 9e8272944b69450ef37ca77c36816eb5720a9ec6 Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Sun, 22 Sep 2019 15:08:47 +0200 Subject: [PATCH] Fix #41 --- src/main.rs | 6 +----- src/sysdaemon.rs | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index 45973d0..ac5689f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -343,11 +343,7 @@ fn start_daemon(config_set: ConfigSet) { #[cfg(target_os = "linux")] fn start_daemon(config_set: ConfigSet) { - if config_set.default.use_system_agent { - // TODO: systemd - }else{ - fork_daemon(config_set); - } + fork_daemon(config_set); } #[cfg(not(target_os = "windows"))] diff --git a/src/sysdaemon.rs b/src/sysdaemon.rs index 2f821ec..23443fd 100644 --- a/src/sysdaemon.rs +++ b/src/sysdaemon.rs @@ -102,12 +102,12 @@ pub fn unregister(_config_set: ConfigSet) { // LINUX #[cfg(target_os = "linux")] -pub fn register(config_set: ConfigSet) { +pub fn register(_config_set: ConfigSet) { println!("Linux does not support automatic system daemon integration."); } #[cfg(target_os = "linux")] -pub fn unregister(config_set: ConfigSet) { +pub fn unregister(_config_set: ConfigSet) { println!("Linux does not support automatic system daemon integration."); }