1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 03:09:51 +03:00
aports/community/ipfixcol2/log-to-syslog.patch
2024-11-17 13:48:17 +00:00

18 lines
492 B
Diff

From: Jakub Jirutka <jakub@jirutka.cz>
Date: Fri, 15 Nov 2024 01:42:00 +0100
Subject: Log to syslog even when not started with -d (daemon).
--- a/src/core/main.cpp
+++ b/src/core/main.cpp
@@ -269,9 +269,10 @@
return EXIT_SUCCESS;
}
+ ipx_verb_syslog(true);
+
if (daemon_en) {
// Run as a standalone daemon process
- ipx_verb_syslog(true);
if (daemon(1, 0) == -1) {
const char *err_str;
ipx_strerror(errno, err_str);