From: Miroslav Lichvar Date: Thu, 22 May 2025 07:17:42 +0000 (+0200) Subject: main: improve error message about failed notification X-Git-Tag: 4.7~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b2b6bbf978f25c27b3e38a00868f1fb5ecb1ceb;p=thirdparty%2Fchrony.git main: improve error message about failed notification Mention the NOTIFY_SOCKET variable to make it more obvious what is preventing chronyd from starting in case it's unexpectedly inherited in a chroot etc. --- diff --git a/main.c b/main.c index bf9c66bf..77d62e36 100644 --- a/main.c +++ b/main.c @@ -126,7 +126,7 @@ notify_system_manager(int start) sock_fd = SCK_OpenUnixDatagramSocket(path, NULL, 0); if (sock_fd < 0 || SCK_Send(sock_fd, message, strlen(message), 0) != strlen(message)) - LOG_FATAL("Could not send notification"); + LOG_FATAL("Could not send notification to $NOTIFY_SOCKET"); SCK_CloseSocket(sock_fd); #endif