diff --git a/userspace/falco/application.cpp b/userspace/falco/application.cpp index 03d606d1..00aef33a 100644 --- a/userspace/falco/application.cpp +++ b/userspace/falco/application.cpp @@ -132,20 +132,20 @@ bool application::run(std::string &errstr, bool &restart) std::bind(&application::print_generated_gvisor_config, this), std::bind(&application::print_ignored_events, this), std::bind(&application::print_syscall_events, this), - std::bind(&application::create_signal_handlers, this), std::bind(&application::load_config, this), - std::bind(&application::create_requested_paths, this), + std::bind(&application::create_signal_handlers, this), std::bind(&application::print_plugin_info, this), std::bind(&application::list_plugins, this), - std::bind(&application::init_inspector, this), std::bind(&application::load_plugins, this), + std::bind(&application::init_inspector, this), std::bind(&application::init_falco_engine, this), - std::bind(&application::select_event_sources, this), std::bind(&application::list_fields, this), + std::bind(&application::select_event_sources, this), std::bind(&application::validate_rules_files, this), std::bind(&application::load_rules_files, this), std::bind(&application::print_support, this), std::bind(&application::attach_inotify_signals, this), + std::bind(&application::create_requested_paths, this), std::bind(&application::daemonize, this), std::bind(&application::init_outputs, this), std::bind(&application::init_clients, this), @@ -153,12 +153,10 @@ bool application::run(std::string &errstr, bool &restart) std::bind(&application::start_grpc_server, this), std::bind(&application::start_webserver, this), #endif - std::bind(&application::open_inspector, this), std::bind(&application::process_events, this) }; std::list> teardown_steps = { - std::bind(&application::close_inspector, this, _1), std::bind(&application::unregister_signal_handlers, this, _1), #ifndef MINIMAL_BUILD std::bind(&application::stop_grpc_server, this, _1),