From 44a5b03841e34154e824fcc7773c458326a3487f Mon Sep 17 00:00:00 2001 From: Noah Watkins Date: Tue, 21 Feb 2017 16:44:22 -0800 Subject: create a foreground non-interactive mode Signed-off-by: Noah Watkins --- src/daemon/executor.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/daemon/executor.cpp') diff --git a/src/daemon/executor.cpp b/src/daemon/executor.cpp index ac5803cfb..20217f2f4 100644 --- a/src/daemon/executor.cpp +++ b/src/daemon/executor.cpp @@ -63,6 +63,13 @@ namespace daemonize return t_daemon{vm}; } + bool t_executor::run_non_interactive( + boost::program_options::variables_map const & vm + ) + { + return t_daemon{vm}.run(false); + } + bool t_executor::run_interactive( boost::program_options::variables_map const & vm ) -- cgit v1.2.3