add: weekly schedules support
This commit is contained in:
parent
db3bcaf7d1
commit
2fd48ac5e6
18 changed files with 301 additions and 86 deletions
4
main.c
4
main.c
|
@ -43,6 +43,7 @@ terminate(int signum)
|
|||
|
||||
controller_free(this_controller);
|
||||
|
||||
free(global_config.database);
|
||||
free(global_config.relay_configs);
|
||||
|
||||
exit(signum);
|
||||
|
@ -69,10 +70,9 @@ main(int argc, const char** argv)
|
|||
/******************** LOAD CONFIG ********************/
|
||||
|
||||
global_config.file = "controller.ini";
|
||||
global_config.database = "controller_db.lmdb";
|
||||
global_config.log_level = LOG_LEVEL_INFO;
|
||||
|
||||
helpers_parse_cli(argc, argv, &global_config);
|
||||
helper_parse_cli(argc, argv, &global_config);
|
||||
|
||||
FILE * const ini_file = fopen(global_config.file, "rb");
|
||||
if(ini_file == NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue