/**
+ * Prints out the unsuccessful parsing of the config files.
+ */
+void Logger::print_conf_reload_failed_exit() const
+{
+ int level = 0;
+ if ( level <= Loglevel )
+ log_error("Config files couldn't be reloaded. Exiting.");
+}
+
+
+/**
* A file could not be opened for reading.
* @param filename The filename.
*/
void print_conf_not_loaded(const std::string& config_path) const;
+ void print_conf_reload_failed_exit() const;
+
void print_missing_cmd_service_option() const;
void print_missing_service_conf_option(const std::string& service_conf_file) const;
need_config_reload = false;
if ( updater->reload_config() != 0 )
+ {
+ updater->get_logger()->print_conf_reload_failed_exit();
exit(-1);
+ }
}
// Snore, snore... don't hog the cpu if we are in daemon_mode.