mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-21 13:41:20 +02:00
38 lines
1.2 KiB
Diff
38 lines
1.2 KiB
Diff
From: Jakub Jirutka <jakub@jirutka.cz>
|
|
Date: Wed, 27 Oct 2021 19:55:52 +0200
|
|
Subject: [PATCH] Don't ignore logdestination option when started in foreground
|
|
|
|
...but ignore it when started with pretend (-p).
|
|
|
|
--- a/radsecproxy.c
|
|
+++ b/radsecproxy.c
|
|
@@ -3075,7 +3075,7 @@
|
|
options.loglevel = loglevel;
|
|
else if (options.loglevel)
|
|
debug_set_level(options.loglevel);
|
|
- if (!foreground) {
|
|
+ if (!pretend) { // XXX-Patched
|
|
debug_set_destination(options.logdestination
|
|
? options.logdestination
|
|
: "x-syslog:///", LOG_TYPE_DEBUG);
|
|
--- a/radsecproxy.8.in
|
|
+++ b/radsecproxy.8.in
|
|
@@ -36,7 +36,7 @@
|
|
Run in foreground.
|
|
.br
|
|
By specifying this option, the proxy will run in foreground mode. That
|
|
-is, it won't detach. Also all logging will be done to stderr.
|
|
+is, it won't detach.
|
|
|
|
.TP
|
|
.B \-d \fIdebuglevel\fR
|
|
@@ -52,7 +52,7 @@
|
|
usual, but exits prior to creating any sockets. It will return different
|
|
exit codes depending on whether the configuration files are okay. This
|
|
may be used to verify configuration files, and can be done while another
|
|
-instance is running.
|
|
+instance is running. Also all logging will be done to stderr.
|
|
|
|
.TP
|
|
.B \-v
|