mirror of
https://github.com/monero-project/monero.git
synced 2025-08-03 06:06:10 -04:00
Allow option 'non-interactive' in monerod config file
This commit is contained in:
parent
c5d10a4ac4
commit
87e2a64327
5 changed files with 7 additions and 11 deletions
|
@ -57,6 +57,11 @@ namespace daemonizer
|
|||
, T_executor && executor // universal ref
|
||||
, boost::program_options::variables_map const & vm
|
||||
);
|
||||
|
||||
const command_line::arg_descriptor<bool> arg_non_interactive = {
|
||||
"non-interactive"
|
||||
, "Run non-interactive"
|
||||
};
|
||||
}
|
||||
|
||||
#ifdef WIN32
|
||||
|
|
|
@ -47,10 +47,6 @@ namespace daemonizer
|
|||
"pidfile"
|
||||
, "File path to write the daemon's PID to (optional, requires --detach)"
|
||||
};
|
||||
const command_line::arg_descriptor<bool> arg_non_interactive = {
|
||||
"non-interactive"
|
||||
, "Run non-interactive"
|
||||
};
|
||||
}
|
||||
|
||||
inline void init_options(
|
||||
|
@ -60,7 +56,6 @@ namespace daemonizer
|
|||
{
|
||||
command_line::add_arg(normal_options, arg_detach);
|
||||
command_line::add_arg(normal_options, arg_pidfile);
|
||||
command_line::add_arg(normal_options, arg_non_interactive);
|
||||
}
|
||||
|
||||
inline boost::filesystem::path get_default_data_dir()
|
||||
|
|
|
@ -61,11 +61,6 @@ namespace daemonizer
|
|||
"run-as-service"
|
||||
, "Hidden -- true if running as windows service"
|
||||
};
|
||||
const command_line::arg_descriptor<bool> arg_non_interactive = {
|
||||
"non-interactive"
|
||||
, "Run non-interactive"
|
||||
};
|
||||
|
||||
std::string get_argument_string(int argc, char const * argv[])
|
||||
{
|
||||
std::string result = "";
|
||||
|
@ -87,7 +82,6 @@ namespace daemonizer
|
|||
command_line::add_arg(normal_options, arg_start_service);
|
||||
command_line::add_arg(normal_options, arg_stop_service);
|
||||
command_line::add_arg(hidden_options, arg_is_service);
|
||||
command_line::add_arg(hidden_options, arg_non_interactive);
|
||||
}
|
||||
|
||||
inline boost::filesystem::path get_default_data_dir()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue