Commit Graph

26 Commits

Author SHA1 Message Date
kakwa 8fefcbaf6b set signal handler also when running in foreground 2019-04-11 00:08:52 +02:00
kakwa 666584fba4 fix double free at shutdown 2017-06-15 20:20:09 +02:00
kakwa 3542a13ab1 using more portable dirname() function
* removing include of <string.h> (which include GNU dirname, which
doesn't follow posix spec, and force using libgen.h
* removing #ifdef for FreeBSD handling of dirname as it's not necessary
anymore.
2017-01-28 03:21:11 +01:00
kakwa 53823817cf including module to include argp 2017-01-27 00:28:46 +01:00
kakwa ef97018644 code reformat 2016-11-02 18:58:14 +01:00
kakwa 3374a29d11 fix compilation error due to unspecified -std and missing -D and include 2016-09-14 20:08:21 +02:00
kakwa d2d2648e7e better help in command line 2016-09-06 08:51:48 +02:00
kakwa aa97d4699d fix memleak 2016-09-05 20:06:15 +02:00
kakwa e732e7cb8e fix command line in case the pid file is not set 2016-09-01 21:10:26 +02:00
kakwa a3f65c7050 fix the way relative paths are handled and pid file handler
* add a pid file option on command line + implement it
* make the relative path in conf param relative to the configuration
  file directory and not the running directory
2016-09-01 19:43:29 +02:00
kakwa 5cbcdc4a1d code reformatting 2016-09-01 08:29:07 +02:00
kakwa 43984fd1b5 fix ordering between daemonize and get working dir 2016-09-01 08:13:57 +02:00
kakwa 6e687f2fe2 passing the launch working dir to the configuration handler
as many configuration paths can be relative to the execution working
directory, this directory is recorded at launch time, and the set_params
function does a chdir(<start work dir>); <load conf>; chdir("/") when
it's called.
2016-09-01 07:59:02 +02:00
kakwa ce19f74858 fix ordering between start log and actual start 2016-08-31 07:36:27 +02:00
kakwa 376d100e9f general reorganization
* rename the logger function to uts_logger
* add logging to the create_tsctx fucntion
* fix some warning *
2016-08-26 20:39:45 +02:00
kakwa 568b4fbcf2 better stdout debugging mode 2016-08-24 23:41:55 +02:00
kakwa 2619c2a576 add the passing of the configuration file path and debug flag 2016-08-24 23:14:15 +02:00
kakwa eaf1d51b1c pass context to the logging function 2016-08-24 23:03:49 +02:00
kakwa b27d676148 big code reorganization:
* split the rfc3161 and the http part
* add a logger function
* add a debugging logger function for the requests
* add a specific handler for rfc3161 request
2016-08-24 22:13:11 +02:00
kakwa 291f58bd7e reformat source code 2016-08-23 19:38:07 +02:00
Pierre-Francois Carpentier ba1e79e848 begin implementing the http part 2015-12-18 00:29:43 +01:00
Pierre-Francois Carpentier 44a28dde81 implementing -d (daemonize command line option) 2015-12-17 23:30:30 +01:00
Pierre-Francois Carpentier d6668a4d35 fix misplaced static definition 2015-12-17 21:46:45 +01:00
Pierre-Francois Carpentier 4c908090cb implementing argument parsing 2015-12-17 15:49:58 +01:00
Pierre-Francois Carpentier ee9828a8b6 begin implementing 2015-12-17 14:09:44 +01:00
Pierre-Francois Carpentier 4f8f93a594 init project skeleton 2015-12-16 23:11:08 +01:00