From 49ff35839dc0f12042ba7601ae01d06162483997 Mon Sep 17 00:00:00 2001 From: Alexey Tikhonov Date: Wed, 9 Oct 2024 13:36:51 +0200 Subject: [PATCH] socket_activated_responders: log to syslog instead of stdout Otherwise logs of 'ExecStartPre' command are lost. --- src/tools/sssd_check_socket_activated_responders.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/tools/sssd_check_socket_activated_responders.c b/src/tools/sssd_check_socket_activated_responders.c index 3e880ccb4ef..de2f4cf60f4 100644 --- a/src/tools/sssd_check_socket_activated_responders.c +++ b/src/tools/sssd_check_socket_activated_responders.c @@ -94,14 +94,13 @@ int main(int argc, const char *argv[]) ret = check_socket_activated_responder(responder); if (ret != EOK) { - DEBUG(SSSDBG_DEFAULT, - "Misconfiguration found for the %s responder.\n" - "The %s responder has been configured to be socket-activated " - "but it's still mentioned in the services' line in %s.\n" - "Please, consider either adjusting your services' line in %s " - "or disabling the %s's socket by calling:\n" + sss_log(SSS_LOG_ERR, + "Misconfiguration found for the '%s' responder.\n" + "It has been configured to be socket-activated but " + "it's still mentioned in the services' line of the config file.\n" + "Please consider either adjusting services' line " + "or disabling the socket by calling:\n" "\"systemctl disable sssd-%s.socket\"", - responder, responder, SSSD_CONFIG_FILE, SSSD_CONFIG_FILE, responder, responder); goto done; }