Monero
Loading...
Searching...
No Matches
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 )
inline
  • 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).

◆ get_default_data_dir()

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

◆ get_relative_path_base()

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

◆ init_options()

void daemonizer::init_options ( boost::program_options::options_description & hidden_options,
boost::program_options::options_description & normal_options )
inline