Electroneum
daemonizer Namespace Reference

Functions

void init_options (boost::program_options::options_description &hidden_options, boost::program_options::options_description &normal_options)
 
boost::filesystem::path get_default_data_dir ()
 
boost::filesystem::path get_relative_path_base (boost::program_options::variables_map const &vm)
 
template<typename T_executor >
bool daemonize (int argc, char const *argv[], T_executor &&executor, boost::program_options::variables_map const &vm)
 

Function Documentation

◆ daemonize()

template<typename T_executor >
bool daemonizer::daemonize ( int  argc,
char const *  argv[],
T_executor &&  executor,
boost::program_options::variables_map const &  vm 
)
  • create_before_detach - this indicates that the daemon should be created before the fork, giving it a chance to report initialization errors. At the time of this writing, this is not possible in the primary daemon (likely due to the size of the blockchain in memory).
Here is the caller graph for this function:

◆ get_default_data_dir()

boost::filesystem::path daemonizer::get_default_data_dir ( )

◆ get_relative_path_base()

boost::filesystem::path daemonizer::get_relative_path_base ( boost::program_options::variables_map const &  vm)

◆ init_options()

void daemonizer::init_options ( boost::program_options::options_description &  hidden_options,
boost::program_options::options_description &  normal_options 
)
Here is the caller graph for this function: