Skip to content

Commit

Permalink
socket_activated_responders: log to syslog instead of stdout
Browse files Browse the repository at this point in the history
Otherwise logs of 'ExecStartPre' command are lost.
  • Loading branch information
alexey-tikhonov committed Oct 9, 2024
1 parent 16604ca commit 50f4213
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/tools/sssd_check_socket_activated_responders.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 50f4213

Please sign in to comment.