take a look at osquery/core/init.cpp
# core
a
take a look at osquery/core/init.cpp