kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit ff6bae6513eb5f1c86ef6ccf938bdc03807b9905
parent a6677b873f2a521c1f03d54ce200b15ed7ca96ac
Author: Joris Vink <joris@coders.se>
Date:   Tue,  7 Sep 2021 23:26:36 +0200

move startup log back into kore_server_start().

Diffstat:
src/kore.c | 56++++++++++++++++++++++++++++----------------------------
1 file changed, 28 insertions(+), 28 deletions(-)

diff --git a/src/kore.c b/src/kore.c @@ -226,34 +226,6 @@ main(int argc, char *argv[]) kore_module_init(); kore_server_sslstart(); - if (!kore_quiet) { - kore_log(LOG_INFO, "%s %s starting, built=%s", - __progname, kore_version, kore_build_date); - kore_log(LOG_INFO, "built-ins: " -#if defined(__linux__) - "seccomp " -#endif -#if defined(KORE_USE_PGSQL) - "pgsql " -#endif -#if defined(KORE_USE_TASKS) - "tasks " -#endif -#if defined(KORE_USE_JSONRPC) - "jsonrpc " -#endif -#if defined(KORE_USE_PYTHON) - "python " -#endif -#if defined(KORE_USE_ACME) - "acme " -#endif -#if defined(KORE_USE_CURL) - "curl " -#endif - ); - } - #if !defined(KORE_SINGLE_BINARY) && !defined(KORE_USE_PYTHON) if (config_file == NULL) usage(); @@ -894,6 +866,34 @@ kore_server_start(int argc, char *argv[]) struct kore_runtime_call *rcall; #endif + if (!kore_quiet) { + kore_log(LOG_INFO, "%s %s starting, built=%s", + __progname, kore_version, kore_build_date); + kore_log(LOG_INFO, "built-ins: " +#if defined(__linux__) + "seccomp " +#endif +#if defined(KORE_USE_PGSQL) + "pgsql " +#endif +#if defined(KORE_USE_TASKS) + "tasks " +#endif +#if defined(KORE_USE_JSONRPC) + "jsonrpc " +#endif +#if defined(KORE_USE_PYTHON) + "python " +#endif +#if defined(KORE_USE_ACME) + "acme " +#endif +#if defined(KORE_USE_CURL) + "curl " +#endif + ); + } + if (kore_foreground == 0) { if (daemon(1, 0) == -1) fatal("cannot daemon(): %s", errno_s);