From 4b2b6bbf978f25c27b3e38a00868f1fb5ecb1ceb Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 22 May 2025 09:17:42 +0200 Subject: [PATCH] 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. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3