1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-api-healthcheck synced 2026-06-18 05:00:03 +02:00
Commit graph

80 commits

Author SHA1 Message Date
8be4466d66 src/main.go: in setLogFile() check for null when closing old FD and also check error from Close() 2021-12-24 11:05:47 +01:00
2470062c3d scripts/templates/rc.conf: use "LOG_FILE" variable. 2021-12-24 11:04:19 +01:00
9532a8d5ef scripts/templates/rc.conf: pass logfile as "-l" flag 2021-12-24 11:03:18 +01:00
823832c94e src/main.go: act on the SIGUSR1 signal (sent by logrotate daemon) and reopen log file. 2020-06-26 18:10:05 +02:00
c4e404f873 src/main.go: rewrite openlog() to a more specific setLogFile() function. 2020-06-26 18:04:46 +02:00
184302b9e4 freebsd: tell newsyslog where the pid file is. 2020-06-26 14:02:07 +02:00
9e8ee93983 src/main.go: adding "--log,-l" command line flag to enable file logging. 2020-06-26 14:01:52 +02:00
fe8724aae5 move some "non server" code from src/server.go to src/main.go 2020-06-26 13:47:48 +02:00
dc28fbd762 scripts/templates/newsyslog.conf: rotate at 10:00 instead of 00:00 2020-06-26 03:41:30 +02:00
d7e643fd73 Version 0.3.4 2020-06-24 17:51:36 +02:00
1abb1c8249 Merge remote-tracking branch 'origin/bugfix/json-float64-parse-error' into devel 2020-06-24 17:51:21 +02:00
d1c1447758 README.md: Document go-lang version. 2020-06-24 17:51:04 +02:00
c214908c0c Rewrite the log module.
It is now cleaner and acts as a wrapper around the standard go log module.
2020-06-24 17:45:14 +02:00
5d5d7bb5be Makefile: make "scripts/info" rule a phony one. so that it's always generated. 2020-06-24 14:45:05 +02:00
ba6b79ae0e src/server.go: in check_api_v2() use utils.JsonGetInt64() to safely get a int64 value from json.
If json contains "nil" value, the type assertion will fail. JsonGetInt64() will in that case return "0"
2020-06-24 14:44:14 +02:00
32faaaf418 Adding src/utils/json.go 2020-06-24 14:44:14 +02:00
aaf0b35b93 compile.sh: hack freebsd package abit. 2020-06-23 17:01:08 +02:00
23f8a09320 Makefile: compile without debug info per default. 2020-06-23 16:53:35 +02:00
dd6d636a43 Version 0.3.3 2020-06-23 13:36:56 +02:00
1a7ee2e148 README.md: document the 'host' request paramter. 2020-06-23 13:35:28 +02:00
5481dd7d32 README.md: Correcting+Cleanup request parameters documentation. 2020-06-23 13:30:03 +02:00
a310cb041d src/server.go: make tcp message function a "real" function instead of a inline one. 2020-06-23 13:07:08 +02:00
ef13af4eb7 src/server.go: Minor cleanup. 2020-06-23 12:56:47 +02:00
66bc6f97af src/server.go: add "host" as a optional fourth parameter. 2020-06-23 12:56:47 +02:00
3aba653038 Define eosapi.ReqParams struct that includes a optional Host parameter.
If left empty, Host parsed from eosapi.ReqParams.Url will be used (like before).
2020-06-23 12:56:47 +02:00
bb8cb86fc0 Version 0.3.2 2020-06-11 19:28:14 +02:00
bf57dbb116 scripts/templates/rc.conf: stop command is not needed as rc can handle it by itself. 2020-06-11 19:28:02 +02:00
56cddd8e24 scripts/templates/rc.conf: pass "-p" flag (create pidfile) to program. 2020-06-11 19:04:09 +02:00
e0c7cfcc62 src/server.go: Use pid package and write pid file. 2020-06-11 19:01:32 +02:00
060535f595 Adding src/pid/pid.go 2020-06-11 19:01:32 +02:00
2b823c1dd3 Adding getopts package to parse pid file path. 2020-06-11 19:01:32 +02:00
83688c4b48 Make: minor fix. 2020-06-11 18:16:38 +02:00
4f1fd33ac7 scripts/build_freebsd.sh: make rc script executable 2020-06-11 18:12:13 +02:00
abde77f291 scripts/templates/rc.conf: append to logfile. 2020-06-11 17:12:38 +02:00
fab8c1a589 scripts/build.sh: move deb specific variables to deb file 2020-06-11 14:17:08 +02:00
c5a8f20c04 scripts: move template files to "templates" directory 2020-06-11 14:13:07 +02:00
00d96cf045 scripts/build_freebsd.sh: create newsyslog config instead of logrotate 2020-06-11 14:09:09 +02:00
cbc638bef0 scripts/build.sh: adding TEMPLATE_DIR variable 2020-06-11 14:08:44 +02:00
590ad836fc Adding: scripts/templates/newsyslog.conf 2020-06-11 14:08:23 +02:00
c6abbfda72 scripts/build_freebsd.sh: package logrotate file. 2020-06-11 13:36:59 +02:00
977e0cf3eb Make: fixing incorrect rule. 2020-06-11 13:36:37 +02:00
7cbecce1ba Adding freebsd package script. 2020-06-09 17:54:20 +02:00
4536c09d5c Make: create info file that contains the variable information. this file is then sourced by build.sh 2020-06-09 17:54:20 +02:00
767508c4f0 scripts/build_deb.sh: refactor common code to build.sh 2020-06-09 17:54:20 +02:00
e547ac7062 adding scripts/rc.template 2020-06-09 17:54:20 +02:00
41cb29703b Adding compile.sh 2020-04-29 14:40:00 +02:00
d30f4e16bc Version 0.3.1 2020-03-20 15:03:03 +01:00
a08b1f3458 src/eosapi/functions.go: in send() u.Host can contain port also. so we need to remove it when setting the Host header. 2020-03-20 14:58:59 +01:00
c222eb9945 Version 0.3.0 2020-03-20 14:36:13 +01:00
01aa9a0fff Adding logrotate config 2020-03-20 14:31:48 +01:00