Skip to content
Snippets Groups Projects
Commit a46332b2 authored by Dmitriy A. Gerasimov's avatar Dmitriy A. Gerasimov
Browse files

[*] Lot of small fixes, confs update, subs update, vers update

parent de464096
No related branches found
No related tags found
No related merge requests found
......@@ -11,9 +11,9 @@ SET (DESTDIR "/opt/${PROJECT_NAME}")
SET( CPACK_GENERATOR "DEB")
SET( CPACK_PACKAGE_NAME "${PROJECT_NAME}")
SET( CPACK_PACKAGE_VERSION_MAJOR 0)
SET( CPACK_PACKAGE_VERSION_MINOR 9)
SET( CPACK_PACKAGE_VERSION_PATCH 15)
SET( CPACK_PACKAGE_VERSION_MAJOR 1)
SET( CPACK_PACKAGE_VERSION_MINOR 0)
SET( CPACK_PACKAGE_VERSION_PATCH 0)
#SET( CPACK_SYSTEM_NAME "debian-9.5-amd64")
set(CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}-${CPACK_PACKAGE_VERSION_PATCH}")
......@@ -81,7 +81,14 @@ if(UNIX)
add_definitions ("-DDAP_OS_LINUX")
endif()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
#if(BUILD_PROFILE)
SET(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} -pg")
SET(CMAKE_LINKER_FLAGS "${CMAKE_LINKER_FLAGS} -pg")
SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -pg")
#endif()
add_executable(${PROJECT_NAME} "sources/main.c" "sources/sig_unix_handler.c")
add_executable(${PROJECT_NAME}-cli "sources/main_node_cli.c" "sources/main_node_cli_shell.c" "sources/main_node_cli_net.c" )
add_executable(${PROJECT_NAME}-tool "sources/main_node_tool.c" )
......
# General section
[general]
debug_mode=false
debug_dump_stream_headers=false
wallets_path=/opt/kelvin-node/var/lib/wallet
wallets_default=default
node_role=full
......@@ -25,7 +26,7 @@ accept=false
enabled=false
# List of loca security access groups. Built in: expats,admins,services,nobody,everybody
access_groups=expats,services,admins
network_address=10.0.0.0
network_address=10.11.12.0
network_mask=255.255.255.0
# Application Resources
......@@ -35,6 +36,7 @@ threads_cnt=0
pid_path=/opt/kelvin-node/var/run/kelvin-node.pid
log_file=/opt/kelvin-node/var/log/kelvin-node.log
ca_folders=[/opt/kelvin-node/var/lib/ca,/opt/kelvin-node/share/ca]
dap_global_db_path=/opt/kelvin-node/var/global_db.sqlite
dap_global_db_driver=sqlite
dap_global_db_path=/opt/kelvin-node/var/lib/global_db
dap_global_db_driver=cdb
Subproject commit fe2d713768655fb05e987b8e64d212c40b17b0ae
Subproject commit cdceb5328a8adf0a9c3cb07c5e271e147b7e8ba5
Subproject commit 76ccee895bcb91d886407da5f86442c77bdad137
Subproject commit 058cfbd38cd15d3dc7c5bb60dab794742a6f8201
Subproject commit 00b48a1455c95aca02d055754b34bd1737a27db4
Subproject commit e6baf415135a226a17a2ba0861051f39022f077a
Subproject commit 07448de3ea5a1e4c3655a2cbdff4d852896fc611
Subproject commit 23951418031e45eb5626901a07e2d342699572fa
Subproject commit 42c9c7f113cd3b30796ef58a2d41983ba9ce76a0
Subproject commit f84455a71c8346fe7fc9e6451f9681dd6e42c47f
Subproject commit a51f2f81038f7118127404c5fa977f34e49a04f1
Subproject commit bcfcef1cd87cc6cfbc7e47887894c0fa3742a218
Subproject commit 406931547486dbe7eadb5c4b4d92c288d761db66
Subproject commit 5c4bf1f472a48086f71822355c14197ff416831a
Subproject commit f3aa992e316e0af2814f741eb5e06b93a9eca651
Subproject commit bbe4d2b4e00012effac21cda4c2d3554dc6173e0
Subproject commit bbf1b9db2c3af9a3a59f6debb90ddc8db55ae2eb
Subproject commit 327016187f5ccec4e21b3fd22342a0dc77941960
......@@ -102,16 +102,17 @@ int main(int argc, const char * argv[])
dap_server_t * l_server = NULL; // DAP Server instance
int rc;
if(dap_common_init(DAP_APP_NAME"_logs.txt")!=0){
log_it(L_CRITICAL,"Can't init common functions module");
return -2;
}
dap_config_init(SYSTEM_CONFIGS_DIR);
if((g_config = dap_config_open(DAP_APP_NAME) ) == NULL) {
log_it(L_CRITICAL,"Can't init general configurations");
return -1;
}
if(dap_common_init(DAP_APP_NAME"_logs.txt")!=0){
log_it(L_CRITICAL,"Can't init common functions module");
return -2;
}
dap_log_level_set( dap_config_get_item_bool_default(g_config,"general","debug_mode", false)? L_DEBUG: L_NOTICE );
parse_args(argc, argv);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment